Why convert circuits between Qiskit, Cirq and PennyLane?
The same circuit can be written in several software kits. Why you might want to move between them, and what stays the same.
6 min read · reviewed December 2026
Three kits, one idea
A quantum circuit is a list of gates on numbered qubits. Several open-source libraries let you write and run such circuits in Python. Qiskit comes from IBM, Cirq from Google and PennyLane from Xanadu. Each has its own style and its own strengths, and each can target simulators and some real devices. The gates themselves are the same mathematical objects in all of them.
Reasons to switch
- A tutorial or paper uses one kit and you use another.
- You want to run on a device that one kit supports and another does not.
- You want a feature that is stronger in one kit, such as automatic differentiation of circuit parameters in PennyLane.
- You are comparing how different simulators handle the same circuit.
What the converter does
It takes a circuit from the Circuit Builder, an example, a share link, or pasted OpenQASM 2.0 or simple Qiskit code, and writes the same circuit as code for Qiskit, Cirq, PennyLane, OpenQASM 2.0 and OpenQASM 3.0. It also shows the exact outcome chances, so you know what the circuit should do before you run it elsewhere.
The converter produces text. It does not import or run Qiskit, Cirq or PennyLane. The guide on checking a conversion lists what has been verified.
Try it
Questions
Which framework should a beginner use?
Any of them will teach the same ideas. Pick the one used by the course or documentation you follow. The Frameworks page compares them.
Will the circuit behave the same everywhere?
In an ideal simulator, yes, apart from the bit-order convention. On real hardware, compilation and noise change the result.
Is OpenQASM a framework?
No, it is a text format for circuits that many tools can read and write.
Read next
Sources and further reading
- A. W. Cross, L. S. Bishop, J. A. Smolin and J. M. Gambetta, “Open quantum assembly language” (2017)
- A. Cross et al., “OpenQASM 3: A broader and deeper quantum assembly language” (2022)
- Qiskit, Cirq and PennyLane documentation
- Frameworks overview on this site
- Circuit Builder gate reference
Check the original sources for exact citations.