[P(1), H(2), Id(3), U(4), U(raw"\mathrm{Gate}",5)]
latexmatrix = raw"\begin{pmatrix}
\alpha & \beta \\
\gamma & \delta
\end{pmatrix}"
U(latexmatrix,1)
[CNOT(1,2), CPHASE(2,3), SWAP(3,4)]
MultiControl([1],[2],[3],[4])
[
MultiControlU([1], [2], [3,4]),
MultiControlU("XYZ", [1], [2], [3,4,5]),
MultiControlU("U_a", [1], [2], [3,5]),
]
[
ClassicalDecision(1, 1),
ClassicalDecision("U", [1,2], 2),
ClassicalDecision("U_a", [1,3], [1,3]),
]
[
Measurement(1),
Measurement("X", 2),
Measurement("Z", 3, 1)
]
[
Measurement([1,2]),
Measurement("ZZ", [2,3]),
Measurement("XX", [3,4], 1)
]
ParityMeasurement(["X","Y","Z"], [1,2,4])
Initialize("\\ket{\\phi}", [1,2,3])
Initialize("\\ket{\\phi}", [1,2,4])
[CNOT(1,2), Measurement(3), Initialize("\\ket{\\phi}", [2,3])]
[CNOT(1,2), Measurement(1), Measurement(3), Initialize("\\ket{\\phi}", [1,3])]
[Noise([1,5]), NoiseAll()]