circuits / ghz-state-5

GHZ State (5 qubit)

FEATURED

5-qubit GHZ state (|00000⟩ + |11111⟩)/√2. Tests entanglement across all qubits of a small processor.

quantumcomputer.dev
openqasm5q5 gatesdepth 50 views0 saves0 forks0 downloads

Source Code

OPENQASM 2.0;
include "qelib1.inc";
qreg q[5];
creg c[5];
h q[0];
cx q[0],q[1];
cx q[0],q[2];
cx q[0],q[3];
cx q[0],q[4];
measure q -> c;

Cite this circuit

MIT
quantumcomputer.dev. "GHZ State (5 qubit)". quantumcomputer.dev/circuits/ghz-state-5. 2026.