Let , let be invertible with and condition number at most , that is, all singular values of lie in , and let be nonzero. Write and
Given
- matrix access: an oracle for , either in the sparse model (for each row, the positions and values of its at most nonzero entries) or as a block encoding of with known normalisation, and
- vector access: a unitary with ,
the quantum linear systems problem with precision is to output a state with , with probability at least a constant (or to output a flag and such a state, with the flag indicating success). Complexity is counted in uses of the two oracles and in additional gates, as a function of , , and .
The output is a quantum state: reading out all amplitudes needs copies, so useful applications measure an observable or sample from . Hermitian can be assumed without loss of generality by passing to , as in Harrow, Hassidim and Lloyd. The formulation with explicit precision and oracle model follows Childs, Kothari and Somma, who state it for Hermitian with in the sparse model and measure the error as , which implies the trace-distance bound above.