The Exercise
A unitary on a quantum system that is also Hermitian, , is at once a gate and an observable, and each of its eigenvalues is or . The exercise measures this observable with the help of one qubit. The qubit starts in beside a vector of ; a Hadamard gate acts on the qubit, then the controlled gate with the qubit as control and as target, then a second Hadamard gate on the qubit. Afterwards the qubit holds the outcome: beside its stands the part of in the eigenspace of , beside its the part in the eigenspace.
The library states the exercise in two theorems. One is about the measurement of any observable whose square is the identity and the states its outcomes leave; the other runs the circuit for a Hermitian unitary on the input .
A Quantum System
A quantum system is given by its state space, a finite dimensional complex Hilbert space. The qubit is the two level system whose state space is .✦ The composite system of two systems and is the system whose state space is the tensor product of the state spaces of and ; the circuit acts on , a control qubit beside the target .✦
A pure state of is a unit vector in the state space of .✦ The basis states and of the qubit are the pure states whose vectors are the standard basis vectors and of .✦ For a nonzero vector in the state space of , the normalized pure state of is the pure state of whose vector is divided by its norm.✦ A state of is a positive operator of unit trace on the state space of , and a pure state gives the state , the projector onto its vector.
Gates and the Circuit
A unitary of is an operator on the state space of with , and the identity evolution of is the unitary . For two unitaries and of , the composite is the unitary of that applies first , then .✦ Unitaries of and of form the product unitary of , whose operator is the tensor product of the two operators; a gate on the first factor of is the product with the identity evolution of .
The Hadamard gate is the unitary of the qubit whose matrix in the basis , is (1)✦ For a unitary of , the controlled gate is the unitary of with operator (2) The measuring circuit of is the unitary of (3)
Observables and Their Measurement
An observable on is a Hermitian operator on the state space of , .✦ A pure state of is an eigenstate of with eigenvalue , a real number, when .✦ A Hermitian unitary of , regarded as an observable, is the observable of whose operator is itself.✦
A measurement on with a finite set of outcomes is a family of measurement operators on the state space of , one for each outcome , with (4)✦ The positive operator valued measure (POVM) of the measurement is the family of positive effects . Performed on a state of , the measurement gives the outcome with probability (5) and when the state after the outcome is the state of (6)
The projectors and of an observable of are the operators (7) which project onto the and eigenspaces of when . For such an observable, the sign measurement of is the measurement on with two outcomes, and , and operators and : the projective measurement of , the outcome standing for the eigenvalue and the outcome for .✦
For a pure state of with , the state after the outcome in the measurement of is the normalized pure state of .✦ For an observable of with and a pure state of with , the state of after the outcome in the sign measurement of is the pure state of with vector (8)✦
The Claim
Theorem 1. Let be an observable of a system with , and let be a pure state of . If , the state is an eigenstate of with eigenvalue : (9)✦ If , the state is an eigenstate of with eigenvalue : (10)✦ If and the outcome of the sign measurement of on has probability , the state after that outcome is the state of : (11)✦
A Hermitian unitary , regarded as an observable, squares to the identity, , so it has a sign measurement, with operators and .
Theorem 2. Let be a Hermitian unitary of a system , and let and be the operators of the sign measurement of , regarded as an observable. For every vector in the state space of , the measuring circuit of acts on as (12)✦
What Is Checked
The first theorem is stated over the sign measurement of an observable with , its projectors (7), the states (8) its outcomes leave, and the general rule (6) for the state after an outcome, taken on . The second is stated over the measuring circuit (3), with the Hadamard gate (1) and the controlled gate (2).
About these constructions the library proves that the Hadamard matrix and the controlled gate are unitary, and that composites and tensor products of unitaries are again unitary, so the circuit is a unitary of . It proves as well that the projector onto a unit vector, and the state after an outcome of nonzero probability, are density operators.