Curriculum / Quantum Foundations / Multi-Qubit Circuits

Lesson 13 of 17ReadingFree+75 XP

Multi-Qubit Circuits

Work with circuits that have multiple qubits.

Multi-Qubit Circuits

Beyond One Qubit

Real quantum algorithms use multiple qubits. With n qubits, the state carries amplitudes over basis states. But remember the very first lesson of this track: the power does not come from "trying everything at once." A measurement only ever gives you n bits. The power comes from interference and entanglement, which let algorithms sculpt those amplitudes so the right answers reinforce and the wrong ones cancel.

Creating Multi-Qubit Circuits

qc = QuantumCircuit(2, 2)  # 2 qubits, 2 classical bits

You can apply gates to each qubit independently:

qc.h(0)      # Hadamard on qubit 0
qc.x(1)      # X on qubit 1
qc.measure(0, 0)
qc.measure(1, 1)

State Notation

With 2 qubits, the state is written as |q1 q0⟩:

  • |00⟩, both qubits are 0
  • |01⟩, qubit 0 is 1, qubit 1 is 0
  • |10⟩, qubit 0 is 0, qubit 1 is 1
  • |11⟩, both qubits are 1

Note: Qiskit uses little-endian ordering, the rightmost bit is qubit 0.

The Power of Multiple Qubits

With just 50 qubits in superposition, you'd need to store complex numbers to simulate the state classically. That's over a petabyte of data!

This exponential scaling is why quantum computers can potentially solve problems that are impossible for classical computers.

How this lesson works

A guided reading lesson with interactive knowledge checks. Concepts are explained step by step with circuit diagrams and runnable examples, and you confirm understanding before moving on.

Part of: Quantum Foundations

Learn the basics: qubits, gates, superposition, and measurement.

Take this lesson free

Create a free account and start this lesson in your browser. No credit card, no installation.