circuits / w-state-3

W State (3 qubit)

FEATURED

Creates the 3-qubit W state |W⟩ = (|001⟩ + |010⟩ + |100⟩)/√3. Robust to single-qubit loss.

quantumcomputer.dev
openqasm3q5 gatesdepth520 views0 saves0 forks0 downloads
1OPENQASM 2.0;
2include "qelib1.inc";
3qreg q[3];
4creg c[3];
5// W state preparation
6ry(1.2310) q[0];
7ch q[0],q[1];
8cx q[1],q[2];
9cx q[0],q[1];
10x q[0];
11measure q -> c;

Cite this circuit

MIT
quantumcomputer.dev. "W State (3 qubit)". quantumcomputer.dev/circuits/w-state-3. 2026.