SHARE
TWEET

Untitled

a guest Jun 16th, 2019 73 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. from qiskit import IBMQ
  2.  IBMQ.load_accounts()
  3.  print("Available backends:")
  4.  IBMQ.backends()
  5.  
  6.  [<IBMQSimulator('ibmq_qasm_simulator') from IBMQ(ibm-q, open, main)>,
  7.   <IBMQBackend('ibmqx4') from IBMQ(ibm-q, open, main)>,
  8.   <IBMQBackend('ibmqx2') from IBMQ(ibm-q, open, main)>,
  9.   <IBMQBackend('ibmq_16_melbourne') from IBMQ(ibm-q, open, main)>,
  10.   <IBMQSimulator('ibmq_qasm_simulator') from IBMQ()>]
  11.  
  12.  
  13. backend = BasicAer.get_backend('ibmq_qasm_simulator')
  14.      
  15. device = IBMQ.get_backend('ibmq_16_melbourne')
  16.  #Choose a real - device
  17.  
  18.  quantum_instance = QuantumInstance(device, shots=100, seed=seed,
  19.                                       seed_transpiler=seed)
  20.  result = qsvm.run(quantum_instance)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top