The Exercise
A quantum search looks for one marked level of a system with levels. It starts in the uniform superposition of the basis states, whose overlap with the marked state is only . The exercise lets the system evolve under the Hamiltonian , which couples the start state to the solution. Evolution under for the time then turns into , however large is.✦ The evolution can also be simulated: splits into three terms built from projectors, and symmetric products of their evolutions over a short time step follow the evolution under with an error of order .✦
The library states both parts for the qudit with any number of levels and any marked level .
A Quantum System
A quantum system is a physical system whose state space is a finite dimensional complex Hilbert space.✦ A pure state of a system is a unit vector in the state space of , determined physically up to a global phase.✦ A state of is a positive operator of unit trace on the state space of .✦ Each pure state gives the state , the projector onto its vector.✦
The qudit with levels is the quantum system whose state space is with its standard inner product.✦ For a level among , the computational basis state is the pure state of the qudit whose vector has entry at and elsewhere.✦ For , the uniform superposition is the pure state of the qudit in which every basis state enters with the same amplitude, (1)✦
Evolution Under a Hamiltonian
A unitary of a system is an operator on the state space of with .✦ It describes a closed evolution of and carries a pure state to the pure state . An observable of is a self adjoint operator on the state space of , .✦ Taken as the Hamiltonian, an observable has as its propagator from time to time the unitary (2)✦ which solves the Schrödinger equation, . In both claims and , and evolution for a time is .
The coupling Hamiltonian of two pure states and of a system is the observable on .✦ On the qudit with levels, the alternative search Hamiltonian for the marked level is the coupling Hamiltonian of the basis state and the uniform superposition (1): (3)✦
The Claim
Theorem 1. Let , let be a level of the qudit with levels, and let be the alternative search Hamiltonian (3). Then (4)✦
Simulating the Evolution
The gate error between two unitaries and of a system is the operator norm of their difference, (5)✦
For observables of a system and a time step , the symmetric Trotter step is the unitary obtained by multiplying the propagators of the terms, first in the order and then in the order .✦
The coupling Hamiltonian of and is the sum of three terms built from projectors, , and , and its Trotter step for a time step is the symmetric Trotter step of these three. For the alternative search Hamiltonian, where and , this is the simulation step (6)✦
A step runs each term for the time , so steps are set against the evolution under for the time .
Theorem 2. Let , let be a level of the qudit with levels, and let and be the alternative search Hamiltonian and its simulation step (6). There is a constant such that for every number of steps and every time step with , (7)✦
For and , the steps reach the time of (4) with a gate error of at most .
What Is Checked
The first claim is stated over the qudit with levels, its basis state , the uniform superposition , the propagator of the alternative search Hamiltonian, and the states of the pure states it compares; the second adds the simulation step and the gate error.
About these constructions the library proves that and every basis state are unit vectors, that the coupling Hamiltonian and its three terms are self adjoint, that the propagator of an observable and the symmetric Trotter step are unitary, that a unitary takes unit vectors to unit vectors, and that is a density operator.