Qiskit vs PennyLane: circuits or differentiable programs?
Reviewed December 2026
Qiskit treats a circuit as an object you build, compile and run. PennyLane treats a circuit as a function you can differentiate, which suits training. Both are Python, both are open source, and they can use each other’s devices through plugins.
Choose Qiskit if
- You want to learn gates and circuits first
- You need transpilation and device runs
- You want IBM hardware access
- You want the biggest community
Choose PennyLane if
- You are doing quantum machine learning
- You are training variational circuits
- You want one code base across many devices
- You use PyTorch, TensorFlow or JAX
Side by side
| Qiskit | PennyLane | |
|---|---|---|
| Maker | IBM | Xanadu |
| Language | Python (with a Rust core) | Python |
| Difficulty | Beginner-friendly | Moderate |
| License | Open source (Apache 2.0 per its repository; check) | Open source (Apache 2.0 per its repository; check) |
| Hardware | IBM Quantum devices through Qiskit Runtime are the native target. Other providers are reached through separate provider packages, for example a Braket provider. Check IBM’s documentation for the current device list and plans. | 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) | 3 | 2 |
| Quantum machine learning (0–3) | 1 | 3 |
| IBM hardware (0–3) | 3 | 2 |
| Google hardware (0–3) | 0 | 1 |
| Many hardware providers (0–3) | 1 | 3 |
| GPU simulation (0–3) | 1 | 2 |
| Circuit compilation (0–3) | 3 | 1 |
| Fault-tolerant planning (0–3) | 1 | 1 |
| Low-level control (0–3) | 2 | 2 |
Ratings are editorial, not benchmarks.
The same Bell state
Qiskit
from qiskit import QuantumCircuit from qiskit_aer import AerSimulator qc = QuantumCircuit(2, 2) qc.h(0) # Hadamard on qubit 0 qc.cx(0, 1) # CNOT: qubit 0 controls qubit 1 qc.measure([0, 1], [0, 1]) sim = AerSimulator() counts = sim.run(qc, shots=1000).result().get_counts() print(counts) # about half '00' and half '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 has a Qiskit plugin, so a PennyLane QNode can run on Qiskit devices. Many researchers write the model in PennyLane and let Qiskit or another provider execute it.
Bottom line
Learn circuits in Qiskit. Add PennyLane when your problem becomes optimisation of parameters.
Related
Other comparisons: Qiskit vs Cirq: which should you learn? · Cirq vs PennyLane · 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?