I would like to execute a circuit in the strangeworks hub on IBM's "ibm_nairobi" system.
Could someone just please send me a general layout of execute and provide a command for stangeworks hub?
Quantum Computing Stack Exchange is a question and answer site for engineers, scientists, programmers, and computing professionals interested in quantum computing. It only takes a minute to sign up.Sign up to join this community
First, make sure to sync your IBMQ account. You can add in your IBMQ API token:
Once you do this, you can click on the hardware tab and see that your IBM Q account has linked to here.
Now you can create and run your circuit as the template given to your by StrangeWork:
import strangeworks.qiskit import qiskit qc = qiskit.QuantumCircuit(2, 2) qc.h(0) qc.cx(0, 1) qc.measure([0, 1], [0, 1]) # uncomment the next line if you have more than one account # backend = strangeworks.qiskit.get_backend("ibmqx2", account_id="ibm") backend = strangeworks.qiskit.get_backend("ibmq_bogota") job = qiskit.execute(qc, backend, shots=50) result = job.result() print("result:", result) counts = result.get_counts() print("counts:", counts)
If you check your IBMQ job status, then you will see the StrangeWork tag in your job:
Upon completion of your job, you can view your result just as you would through Qiskit.