Standard reference for gate matrices, the Clifford/non-Clifford distinction, and controlled-gate constructions used throughout this record.
doi.org/10.1017/cbo9780511976667 ↗Controlled-Y gate
A controlled version of the Pauli-Y gate that flips the target bit and attaches a ±i phase exactly when the control qubit is |1⟩, completing the CX/CY/CZ family of controlled Paulis.
Atlas stars stay in the public catalog. Saving this entry to your workspace starts an unstarred private copy.
CY is less common as a native hardware gate than CX or CZ, but it completes the natural trio of controlled-Pauli gates and is a direct exercise in the general controlled-U-from-CX recipe, since Y is neither diagonal (like Z) nor real (like X).
Circuit & simulation
What this takes and returns
Takes2 qubitsWhat joins here
Takes a 2-qubit register and states no assumption about what is on it. That is the whole condition: anything returning 2 qubits can feed it.
16 entries meet this end. Named below.
Returns2 qubitsWhat joins here
Returns a 2-qubit register a next stage can take. This is the end that joins.
11 entries meet this end. Named below.
A unitary. The same register goes in and comes out, and this entry states no assumption about what is on it — which is what lets anything of the same width feed it. See all 29 →
How it works
Definition
with the control as the first (leftmost) qubit. Like , this matrix is a bit-flip on the target; unlike , it also attaches a phase, since and .
Action on basis states
The control is left untouched in every case; the target flips exactly when the control is , exactly as with , but the flipped amplitude also picks up a phase of depending on direction.
Decomposition
Using the single-qubit identity (verified directly: ), conjugating a plain 's target by before and after reproduces exactly:
so the circuit applies to the target, then , then to the target — a direct three-gate analogue of the identity elsewhere in this catalog.
Key identities
- : is its own inverse, since .
- is Clifford: it maps Pauli operators to Pauli operators under conjugation, just like and .
- Together, , , and are the three controlled-Pauli gates; any one can be built from either of the others plus single-qubit Clifford conjugation ( for , for ).
Implementation
OPENQASM 3.0;
include "stdgates.inc";
qubit[2] q;
x q[0];
cy q[0], q[1];Quantum vs classical
Classical baseline
Use a classical state-vector or matrix simulation at the same width, precision, and measurement objective.
Quantum claim
The quantum record demonstrates a state or operator behavior; it does not make classical simulation or communication costs disappear.
How to compare
Compare fidelity, samples, gate depth, noise, memory, and the cost of preparing and reading the state.
Declared gaps
Nobody has reviewed this record for gaps yet.
Literature & references
Defines the standard gate library (id, sdg, tdg, cy, crz, rxx, rzz, ccx, cx…) used natively by the code snippets on this record.
arxiv.org/abs/2104.14722 ↗