The hidden subgroup problem for a group is specified by an oracle that hides an unknown subgroup : it is constant on each left coset of and takes distinct values on distinct cosets. The task is to determine , usually by finding a generating set for it.
A shift-invariant basis is a common eigenbasis of all cyclic shift operators . For the displayed Fourier states, orthonormality follows from the root-of-unity filter:There are vectors in this orthonormal set in the -dimensional Hilbert space, so they form a basis. Reindexing the finite sum givesThus every is simultaneously an eigenvector of every shift, with eigenvalue for .
For each fixed , right multiplication by is a bijection of , whose inverse is right multiplication by . Therefore permutes the displayed orthonormal basis of the tensor-product space. It is consequently a unitary operator, with
Write . Applying and then changing the summation variable from to givesHence this state is an eigenvector of with eigenvalue .
Using the conventionpart (ii) applies the extra phase to term . The resulting first register is the quantum Fourier transform of . Applying its inverse therefore produces
Choose and prepare . The circuit from part (iii) returnsso a quantum measurement in the computational basis of the first register reveals the discrete logarithm exactly. More generally, any that is invertible modulo returns , from which follows by multiplication by the modular inverse of .
Let be the orthogonal projection onto the good linear subspace and writewhere the two displayed states are normalized projections into and . Define the reflectionsThe amplitude amplification iterate preserves the good-bad plane, and its th iterate satisfiesThus repeated reflections rotate amplitude toward the good subspace, reaching constant success probability after iterations.
In the ordered orthonormal basisof , the Pauli Z gate acts asIt fixes the line and negates , so it is the reflection in a hyperplane orthogonal to the good state.
Set . Unitary conjugation givesThe operator negates and fixes every vector in orthogonal to it. It is therefore the reflection in a hyperplane whose normal is .
Put and , where . In the ordered basis , the product of the two reflections isThe leading minus sign is a physically irrelevant global phase. The remaining rotation matrix rotates the good-bad plane through , whereEquivalently, one iterate changes the initial angle to .
Attach a quantum ancilla prepared with amplitudeon ; this is possible because . Mark a state as good only when both the original success qubit and this ancilla equal one. The enlarged state's good probability is , so its good amplitude is . One amplitude amplification iteration rotates the angle from to . It therefore prepares exactly, after which the flag and ancillary qubits may be discarded. This is an instance of exact amplitude amplification.
The spectral norm of an operator is the induced operator normEvery Pauli X gate is unitary, so . The triangle inequality for the norm therefore givesIn fact equality holds, as the product of eigenvectors of the has eigenvalue under .
The operators act on different qubits and therefore commute, soSince ,The scalar is a global phase. Thus each factor uses two Hadamard gates and one phase gate, and applying the factors in parallel or sequentially gives an exact quantum circuit of elementary gates.
Each summand of acts on one qubit, while each summand of acts on two. Therefore is a 2-local Hamiltonian. We haveSplit into steps of length and use the second-order product formulaFor one step, in the stated estimate, so the spectral-norm error is . The error bound for a product of unitary operators makes the total errorIt is therefore enough to choosewith also large enough that the small-step estimate applies.
All terms commute. A factor uses a constant-size circuit of two controlled-NOT gates and one phase gate, up to a global phase, so one product-formula step costs gates. The complete Hamiltonian simulation consequently has size
First construct a controlled unitary gate from the uncontrolled oracle. Keep the supplied in a reference register. Controlled on an extra qubit, swap the data and reference registers, query on the register that contains in one branch, and swap back. Because , that branch is unchanged, while the other branch acquires on the data. Reversing the control convention with Pauli X gates gives controlled-. The reference state is returned unchanged, and each use costs one query to and controlled-SWAP gates.
Expand in an eigenbasis of . Exact quantum phase estimation with an -qubit phase register producesApply the available phase gates, controlled by the corresponding bits of , to multiply branch byThen reverse phase estimation. Although no oracle was supplied, every eigenvalue obeys , so . The inverse controlled powers can therefore be implemented with forward calls to . Since , phase estimation and its inverse use only queries. The phase register returns to , while the data register isAs a direct check, the same spectral promise implies .
The HHL algorithm requires coherent, efficient and repeatable preparation of the normalized state , normally through a known preparation circuit and its inverse; possession of a single unknown physical specimen does not supply that access. The component of on any discarded or unresolved small-eigenvalue subspace must also be negligible. Here is a unitary operator, so it is invertible and all its singular values equal one, giving condition number .
Standard HHL is stated for a Hermitian matrix with an efficient sparse-access or block encoding oracle. A non-Hermitian can be embedded in the Hermitian block matrixpart (a) supplies efficient access to . With inverse-polynomial target precision, phase bits, and an efficient preparation oracle for , the runtime is . The output is the normalized quantum state proportional to the solution , rather than a classical list of all its amplitudes.
Implement the assumed efficient classical algorithm for as a reversible circuit. On input , it computes an -bit binary expansion of the angle in a work register using Toffoli gates and elementary reversible gates. Write the computed angle as a sum of binary-weighted angles. For each angle bit, apply the corresponding controlled single-qubit rotation to the target. These rotations have the same axis, so their angles add and produceFinally apply uncomputation to erase the work register. Each Toffoli gate and controlled rotation has a constant-size decomposition into one- and two-qubit gates when arbitrary one-qubit rotations are available. Ignoring the stipulated precision costs, the resulting circuit has size and returns every quantum ancilla to zero.
Articles by others on the same topic
There are currently no matching articles.