GHZ: Three-Qubit Entanglement
The GHZ state — named after Greenberger, Horne, and Zeilinger — is the simplest genuinely three-party entangled state. Written out, it is
All three qubits are entangled together: measure any one of them and you instantly know the outcome of the other two, even though each qubit on its own is maximally mixed.
Building it step by step
Start from and apply three gates:
-
Hadamard on qubit 0. This creates the superposition .
-
CNOT from qubit 0 to qubit 1. The control is now in superposition, so the CNOT fires on the branch only, giving .
-
CNOT from qubit 0 to qubit 2. The same logic flips qubit 2 in the branch, producing .
Putting all three operations together:
Why GHZ matters
The GHZ state violates local-realistic inequalities in a sharper way than any two-qubit Bell state: a single simultaneous measurement of all three qubits produces a contradiction with classical hidden variables without any statistical averaging. It also forms the backbone of multi-party quantum secret sharing and quantum error correction protocols.
Try it
Build the GHZ state. The grader checks the full state vector: amplitude on and and zero amplitude everywhere else.
After running, open the State tab: you should see only two non-zero amplitudes, each , corresponding to the all-zeros and all-ones basis states.
Sign in on the full site to ask questions and join the discussion.