circuits / w-state-3
W State (3 qubit)
✓FEATUREDCreates the 3-qubit W state |W⟩ = (|001⟩ + |010⟩ + |100⟩)/√3. Robust to single-qubit loss.
openqasm3q5 gatesdepth 50 views0 saves0 forks0 downloads
Source Code
OPENQASM 2.0;
include "qelib1.inc";
qreg q[3];
creg c[3];
// W state preparation
ry(1.2310) q[0];
ch q[0],q[1];
cx q[1],q[2];
cx q[0],q[1];
x q[0];
measure q -> c;Cite this circuit
MITquantumcomputer.dev. "W State (3 qubit)". quantumcomputer.dev/circuits/w-state-3. 2026.