Algorithm

GHZ State

Problem: create a three-qubit state where all measured bits agree.

Run in Simulator

Expected output

000mix111

Counts cluster around 000 and 111.

Core intuition

One H creates a branch; two CX gates share it with the other qubits.

Visual circuit

H 0, CX 0 1, CX 0 2.

Significance

GHZ states reveal multi-party correlation and appear in error-correction thinking.

Limit

More qubits make the state fragile on real noisy hardware.

Circuit DSL

# GHZ
qubits 3
H 0
CX 0 1
CX 0 2
MEASURE 0
MEASURE 1
MEASURE 2

Challenge

Which result should be rare?