|q⟩ Bad Qubits

advanced · Programming · Quantum Sensing & Metrology

Entanglement-Enhanced Sensing

The standard quantum limit assumed independent probes. Entanglement breaks that assumption. By correlating NN qubits into a GHZ state, we make them accumulate phase collectively and beat the 1/N1/\sqrt{N} scaling — the central result that motivates this whole module.

The GHZ probe

The Greenberger–Horne–Zeilinger state on NN qubits is the maximal superposition of "all zeros" and "all ones":

GHZN=0N+1N2.|\mathrm{GHZ}_N\rangle = \frac{|0\rangle^{\otimes N} + |1\rangle^{\otimes N}}{\sqrt 2}.

It is built with one Hadamard and N1N-1 CNOTs: the Hadamard creates a superposition on the first qubit, and each CNOT copies that bit's value into another qubit, locking them together.

Why it senses NN times faster

Apply the same phase θ\theta to every qubit, U(θ)=keiθZk/2U(\theta) = \prod_k e^{-i\theta Z_k/2}. On the two GHZ branches the phases add up:

GHZNU(θ)eiNθ/20N+e+iNθ/21N2.|\mathrm{GHZ}_N\rangle \xrightarrow{U(\theta)} \frac{e^{-iN\theta/2}|0\rangle^{\otimes N} + e^{+iN\theta/2}|1\rangle^{\otimes N}}{\sqrt 2}.

The relative phase between the two branches is NθN\thetaNN times larger than the single-qubit phase. The GHZ state oscillates NN times faster as θ\theta changes, so the same change in θ\theta is far easier to detect. This is sometimes called phase super-resolution.

The Fisher information jumps to N2N^2

Recall FQ=4Var(G)F_Q = 4\,\mathrm{Var}(G) with collective generator G=12kZkG = \tfrac12\sum_k Z_k. For the GHZ state the two branches are eigenstates of GG with eigenvalues ±N/2\pm N/2, so G=0\langle G\rangle = 0 and G2=N2/4\langle G^2\rangle = N^2/4, giving

FQGHZ=4N24=N2.F_Q^{\mathrm{GHZ}} = 4 \cdot \frac{N^2}{4} = N^2.

Compare with FQ=NF_Q = N for NN independent probes. Through the Cramér–Rao bound this turns into

Δθ    1FQ=1N,\Delta\theta \;\ge\; \frac{1}{\sqrt{F_Q}} = \frac{1}{N},

a 1/N1/N scaling that beats the SQL's 1/N1/\sqrt N by a factor of N\sqrt N.

Reading out a GHZ phase

To convert the amplified phase into counts, the readout mirrors the preparation in reverse (disentangle with CNOTs, then a Hadamard) followed by a measurement. The parity of the all-zeros versus all-ones outcome then oscillates as cos(Nθ)\cos(N\theta)NN fringes for every one fringe of a single qubit.

Try it

Build the 3-qubit GHZ state (000+111)/2(|000\rangle + |111\rangle)/\sqrt2 with a Hadamard and two CNOTs. The grader compares the full state vector, so only the correct entangled superposition will pass.

Run your code to see the quantum state.

Sign in on the full site to ask questions and join the discussion.