Writing in Cirq to running on IBM Quantum
1. Create your circuit as normal in Cirq.
2. Use circuit.to_qasm() to output the QASM representation of the circuit, as a string.
3. Save that string to a .qasm file
Copyright By PowCoder代写 加微信 powcoder
4. Go to IBM Quantum (https://quantum-computing.ibm.com) and sign in.
5. Launch the IBM Quantum Composer:
6. Upload your QASM file in the top left
7. Confirm that your circuit looks the way you expect it to
8. Click Setup and Run in the top right
9. Choose a system or simulator (preferably with a small queue)
10. Choose settings
11. Click the ¡°RUN¡± button in the bottom right
12. Go to the ¡°Composer jobs¡± tab in the top left and find your job
13. See your job status and results in this screen, or open ¡°See More Details¡± to see your transpiled circuit, results histogram, and to download your results.
Note: There should be a way to do this directly from python, without using the web interface. However, Qiskit¡¯s documentation and codebase is in flux. They may have removed or modified the process for doing this. You can look up how to do this yourself, just stick with using the web interface. I¡¯ll be looking into the best way to do this separately, and will inform the class with what I find.
Also, IBM Quantum Lab is almost an entirely different stack than the Quantum Composer, but may give you another option to run your circuits.
Let me know if you have questions by asking them on piazza or sending them to me at
程序代写 CS代考 加微信: powcoder QQ: 1823890830 Email: powcoder@163.com