Equivalent Circuits
Two quantum circuits are equivalent when they perform exactly the same transformation on every input state — that is, when they implement the same unitary matrix . Recognising equivalent circuits is a practical skill: compilers use it to swap an expensive gate for a cheaper sequence of gates, and hardware providers publish tables of such identities so you can target their native gate set.
Phase gates and how they compose
The gate (sometimes called the gate) advances the phase of by :
Applying twice means multiplying the matrix by itself:
That last matrix is the gate (also written ). In other words, two consecutive gates are circuit-equivalent to a single gate. Both circuits act identically on every qubit state, so no experiment can distinguish them.
By the same logic, and , giving a small family of related identities:
Each equality is a statement about unitary matrices, and each can be verified by multiplying the matrices together.
What the grader checks
The unitary grader computes the full complex matrix of your circuit and compares it to the expected matrix — in this case . An empty circuit (identity ) does not match , so you must actually apply the gates.
Try it
Implement the gate using only two gate calls. The grader will compare the unitary of your circuit against directly.
After running, inspect the Matrix tab to see the unitary. The bottom-right entry should read , confirming you have realized .
Sign in on the full site to ask questions and join the discussion.