circuits / ghz-state-3

GHZ State (3 qubits)

FEATURED

Creates a 3-qubit GHZ state |GHZ⟩ = (|000⟩ + |111⟩)/√2, extending entanglement across three qubits.

quantumcomputer.dev
openqasm3q3 gatesdepth 30 views0 saves0 forks0 downloads

Source Code

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

Cite this circuit

MIT
quantumcomputer.dev. "GHZ State (3 qubits)". quantumcomputer.dev/circuits/ghz-state-3. 2026.