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 gatesdepth521 views0 saves0 forks0 downloads
1OPENQASM 2.0;
2include "qelib1.inc";
3qreg q[5];
4creg c[5];
5h q[0];
6cx q[0],q[1];
7cx q[0],q[2];
8cx q[0],q[3];
9cx q[0],q[4];
10measure q -> c;

Cite this circuit

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