Cirq vs PennyLane
Reviewed December 2026
These two overlap less than their reputations suggest. Cirq is about describing a circuit exactly and simulating it with noise. PennyLane is about computing gradients and training. Because PennyLane has a Cirq plugin, you can combine them.
Choose Cirq if
- You need explicit qubit placement and noise models
- You work on circuit structure and timing
- You use Google’s tools
Choose PennyLane if
- You are training circuits with gradients
- You want machine-learning integration
- You want to switch devices with one line
Side by side
| Cirq | PennyLane | |
|---|---|---|
| Maker | Google Quantum AI | Xanadu |
| Language | Python | Python |
| Difficulty | Moderate | Moderate |
| License | Open source (Apache 2.0 per its repository; check) | Open source (Apache 2.0 per its repository; check) |
| Hardware | Google Quantum AI hardware is the native target, with limited access. Some other providers have Cirq integrations. Check Google’s documentation for what is currently available to outside users. | Hardware is reached through plugins, so the list depends on which plugins and accounts you set up. Check PennyLane’s plugin directory for what is current. |
| Beginner friendliness (0–3) | 1 | 2 |
| Quantum machine learning (0–3) | 1 | 3 |
| IBM hardware (0–3) | 0 | 2 |
| Google hardware (0–3) | 3 | 1 |
| Many hardware providers (0–3) | 1 | 3 |
| GPU simulation (0–3) | 1 | 2 |
| Circuit compilation (0–3) | 2 | 1 |
| Fault-tolerant planning (0–3) | 1 | 1 |
| Low-level control (0–3) | 3 | 2 |
Ratings are editorial, not benchmarks.
The same Bell state
Cirq
import cirq
q0, q1 = cirq.LineQubit.range(2)
circuit = cirq.Circuit(
cirq.H(q0),
cirq.CNOT(q0, q1),
cirq.measure(q0, q1, key="m"),
)
result = cirq.Simulator().run(circuit, repetitions=1000)
print(result.histogram(key="m")) # counts of 0 and 3 (the bit strings 00 and 11)PennyLane
import pennylane as qml
dev = qml.device("default.qubit", wires=2)
@qml.qnode(dev)
def bell():
qml.Hadamard(wires=0)
qml.CNOT(wires=[0, 1])
return qml.probs(wires=[0, 1])
print(bell()) # [0.5, 0. , 0. , 0.5]Written from documentation and not executed in this site’s build environment. Check against the versions you install.
Can you use both?
PennyLane can use Cirq as a device through its plugin, which gives you Cirq’s simulators with PennyLane’s gradients.
Bottom line
Pick by task: Cirq for describing and simulating circuits in detail, PennyLane for training them.
Related
Other comparisons: Qiskit vs Cirq: which should you learn? · Qiskit vs PennyLane: circuits or differentiable programs? · Qiskit vs Amazon Braket · Qiskit vs pytket: transpiler or compiler? · Qiskit vs Q#: Python library or quantum language? · Qiskit vs CUDA-Q: general SDK or GPU platform?