Algorithm
GHZ State
Problem: create a three-qubit state where all measured bits agree.
Expected output
Counts cluster around 000 and 111.
Algorithm
Problem: create a three-qubit state where all measured bits agree.
Counts cluster around 000 and 111.
One H creates a branch; two CX gates share it with the other qubits.
H 0, CX 0 1, CX 0 2.
GHZ states reveal multi-party correlation and appear in error-correction thinking.
More qubits make the state fragile on real noisy hardware.
# GHZ qubits 3 H 0 CX 0 1 CX 0 2 MEASURE 0 MEASURE 1 MEASURE 2
Which result should be rare?