Site Tools


ket-ghz

Table of Contents

GHZ state

GHZ state (Greenberger-Horne-Zeilinger state) is a maximally entangled quantum state of three or more qubits. The three-qubit GHZ state is an equal superposition of all-zeros and all-ones.

The GHZ state is named after Daniel Greenberger, Michael Horne, and Anton Zeilinger, who introduced it in 1989. It is a natural generalization of the two-qubit Bell state to three qubits. Measuring any single qubit of the GHZ state in the computational basis yields or with equal probability, and collapses all remaining qubits to the same value.

Generalization

The -qubit GHZ state generalizes straightforwardly to any number of qubits .

Circuit

The three-qubit GHZ state is prepared by applying a Hadamard gate to the first qubit and then applying CX gates from the first qubit to each of the other two qubits.

Fragility

Unlike the W state, the GHZ state is fragile: tracing out any single qubit reduces the remaining two-qubit state to the completely mixed state , with no residual entanglement between the surviving qubits.

Gates

Flipping all three qubits simultaneously just swaps in the superposition, so the GHZ state is unchanged. This global bit-flip symmetry is a defining feature of the GHZ state: the correlations are all-or-nothing, and the “all zeros” and “all ones” branches are related by a global flip.

Z on qubit 1

Applying Z to any single qubit negates the term (where that qubit is in ) and leaves unchanged. This flips the relative sign, producing a distinct state sometimes written .

Applying to a second qubit would negate the term again, cancelling the first sign flip and returning to . So on an even number of qubits leaves the state invariant; on an odd number gives .

States

The two-qubit Bell state is the member of the GHZ family. It shares the same structure — equal superposition of all-zeros and all-ones — and the same bit-flip invariance ( leaves it unchanged). The GHZ state is what you get by entangling one more qubit into the superposition.

The GHZ state and the W state are the two inequivalent classes of genuine three-qubit entanglement. Tracing out any single qubit of the GHZ state collapses the remaining two to the completely mixed state , with zero residual entanglement. The W state is the opposite: qubit loss still leaves a Bell state behind two thirds of the time. The two classes cannot be interconverted by LOCC.

The -qubit GHZ state is prepared by one Hadamard on qubit 1 followed by CX gates from qubit 1 to each of the other qubits. The state saturates the Mermin inequality for qubits, producing the maximum possible violation of local hidden variable theories for multi-qubit correlations.

List of code implementations

ket-ghz.md · Last modified: