The Exercise
A gate acting on a quantum system should take a state to . An imperfect device takes it to instead, and the error of the device is the largest distance, over all input states, between the intended output and the actual output . Run two such devices one after the other: first in place of , then in place of a second gate . The intended output is , the actual one . The exercise is to show that the error of the sequence is at most the sum of the two errors, for any distance that satisfies the triangle inequality and does not change when both of its arguments are conjugated by the same unitary.✦
A Quantum System
A quantum system is a physical object whose state space is a finite dimensional complex Hilbert space.✦ A state of is a positive operator of unit trace on the state space of .✦
A unitary of is a closed system evolution of : an operator on the state space of with .✦ The evolution of a state of under a unitary of is the state (1)✦ For two unitaries and of , the unitary after is the unitary of whose operator is the product of the operators of and , so that acts first.✦
The Gate Error
Let assign a real number to every pair of states , of . The gate error of a map from states of to states of , as an implementation of a unitary of , is the real number (2)✦ the supremum taken over the states of .
The Claim
The triangle inequality for is (3) for all states , , of . Invariance under unitaries is (4) for every unitary of and all states , of .
Theorem 1. Let be a quantum system and let assign a real number to every pair of states of , satisfying the triangle inequality (3) and the invariance (4). Let and be unitaries of , and let and be maps from states of to states of such that the distances and are bounded above as and range over the states of . Then the gate error of as an implementation of is at most the sum of the two gate errors: (5)✦
What Is Checked
The claim is stated over the states and the unitaries of a quantum system , the evolution (1) of a state under a unitary, the unitary that applies and then , and the gate error (2).
For these constructions the library proves that the evolution of a state is again a state, since conjugating a density operator by a unitary gives a density operator, and that is a unitary, as a product of unitaries.