Skip to main content

Plain-Language Intuition

Mode: Simple / School
How simple can a quantum circuit be and still be out of reach for classical computers? An IQP circuit is about as simple as it gets: 1. Hadamard on every qubit. 2. A layer of phase gates that all commute, so their order does not matter and they could in principle all happen at the same instant. 3. Hadamard on every qubit again. Without the middle layer, the two Hadamard layers cancel and the answer is always 000. The phase layer changes how the paths interfere, and the result is a structured pattern of probabilities. Remarkably, even though this is far from a full quantum computer, producing samples from such patterns is believed to be impossible for classical computers once there are enough qubits.

Quantum Advantage Experiments

IQP Circuit Sampling: quick reference

Sandwiches commuting phase gates between two Hadamard layers to produce an output distribution believed hard to sample classically.

Topic
Quantum Advantage Experiments
Level
Advanced
Circuit size
3 Qubits
Key result
Classically hard sampling from a single layer of commuting gates

Concepts covered: IQP Circuits, Commuting Gates, Sampling Complexity, Interference

How IQP Circuit Sampling works, step by step

  1. Opening Hadamard Layer. Hadamards spread the state over all eight bit strings.
  2. Commuting Phase Layer. T gates and CZ gates attach a different phase to each bit string. Their order is irrelevant.
  3. Closing Hadamard Layer. The second Hadamard layer makes the phases interfere and turns them into unequal probabilities.
  4. Sample the Distribution. Some bit strings appear over 20% of the time, others under 2%.

Frequently asked questions

What is IQP Circuit Sampling?

Sandwiches commuting phase gates between two Hadamard layers to produce an output distribution believed hard to sample classically. It is a advanced-level topic in quantum advantage experiments.

How many qubits does the IQP Sampling circuit use?

The QuanBit tutorial uses a 3 qubits circuit. Key result: Classically hard sampling from a single layer of commuting gates.

Can I simulate IQP Sampling online for free?

Yes. The interactive IQP Sampling tutorial at https://www.quanbit.tech/learn/iqp-sampling runs free in the browser with nothing to install. You can step through the circuit gate by gate, watch the probabilities, statevector and Bloch spheres update, build the circuit yourself and take a short quiz.