The Exercise
A qubit controls a unitary acting on a second system , the target. In one circuit the controlled gate acts first, applying to the target when the control is and nothing when it is , and the control is then measured in the computational basis. In the other the control is measured first, and its outcome, now a classical bit, decides whether is applied to the target. The exercise asks to show that the two circuits cannot be told apart: the measurement of a control qubit commutes with the gate it controls.
A Qubit and a Target
A quantum system is a physical system whose state space is a finite dimensional complex Hilbert space.✦ The composite system of two quantum systems and is the system whose state space is the tensor product of their state spaces.✦
A pure state of a system is a unit vector in the state space of .✦ A state of , pure or mixed, is a positive operator of unit trace on the state space of .✦
The qubit is the two level system whose state space is itself.✦ Its computational basis states are the pure states and .✦ The exercise takes place in the composite system , the control first and the target second.
Gates
A unitary of a system is an operator on the state space of with .✦ A state of evolves under a unitary of as (1) The identity evolution of is the unitary whose operator is the identity .✦ For unitaries of and of , the product unitary is the unitary of whose operator is the tensor product of the two; with the identity on the first factor it gives the gate , which acts with on the second factor and leaves alone.
For a unitary of , the controlled gate is the unitary of with operator (2)✦ For a unitary of , the classically controlled gate is the family of unitaries of , one for each outcome of the control: the identity evolution for , and on the target for , (3)
Measuring the Control
A measurement on a system with a finite set of outcomes is a family of measurement operators on the state space of , one for each outcome , that satisfies the completeness relation (4)✦ The effects of a measurement on form the positive operator valued measure (POVM) of the measurement. On a state of the outcome occurs with the probability given by the Born rule, , and when it occurs with it leaves the system in the state (5)
The projective measurement of in an orthonormal basis is the measurement whose operator for the outcome is the projector .✦ The measurement on the first factor of a composite given by a measurement on with operators is the measurement of with the same outcomes and operators .✦ The measurement of the control qubit is the projective measurement of in its computational basis, made in this way on the first factor of ; its operators are (6)✦
The Claim
The controlled gate does not change the statistics of this measurement: for every state of and each outcome , (7)✦ Write for this common probability.
Theorem 1. Let be a unitary of a system , let be a state of , and let be an outcome of the measurement of the control qubit with . Then measuring the control after and obtaining leaves the same state as measuring it first, obtaining , and applying : (8)✦
What Is Checked
The claim (8) is stated over states of the composite system of the qubit and a target, the controlled gate of (2), the measurement of the control qubit (6) with the state (5) after an outcome, and the classically controlled gate of (3).
About these constructions the library proves that is unitary, and that a product of unitaries, among them, is unitary. It proves that the projective measurement in a basis and the measurement on the first factor satisfy the completeness relation (4), and that a state evolved by a unitary as in (1), or left by an outcome of nonzero probability as in (5), is again a positive operator of unit trace.