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

CirqPennyLane
MakerGoogle Quantum AIXanadu
LanguagePythonPython
DifficultyModerateModerate
LicenseOpen source (Apache 2.0 per its repository; check)Open source (Apache 2.0 per its repository; check)
HardwareGoogle 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)12
Quantum machine learning (0–3)13
IBM hardware (0–3)02
Google hardware (0–3)31
Many hardware providers (0–3)13
GPU simulation (0–3)12
Circuit compilation (0–3)21
Fault-tolerant planning (0–3)11
Low-level control (0–3)32

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?