Skip to content
Quantum ComputingAN INTERACTIVE OPEN TEXTBOOK
charithj.com.au

Quantum linear-algebra improvements and input/output assumptions

Evaluate quantum linear-algebra improvements through their input, conditioning, precision and output requirements.

21 min readDr. Charith Jayasekara↓ Chapter PDF
By the end, you’ll be able to
  • Solve a two-entry linear system and normalise its solution.
  • Calculate a scalar observable of the solution state.
  • Audit data preparation and readout assumptions.

Solving for a state is a different output task

Section titled “Solving for a state is a different output task”

Classical linear algebra often returns a list of numbers. A quantum linear-systems algorithm typically prepares a state proportional to that list. If the desired solution is x, the output is x divided by its norm encoded as amplitudes. That can be useful when the next step asks for a small expectation value or sample, but it is not equivalent to printing every coordinate.

This distinction explains both the promise and the limitations of quantum linear algebra. A state on a modest number of qubits can represent a vector with many entries, yet a measurement returns limited classical information. The useful question is whether the application needs information that can be extracted economically from that state. “The vector has exponentially many entries” is not by itself an application advantage.

Review vectors and matrices, normalisation and measurement. A classical prerequisite is understanding that solving Ax equal to b means finding a vector whose image under A is b.

WORKED DIAGRAM · AA07From a solution vector to an observable
From a solution vector to an observableThe normalised state gives probabilities 4/5 and 1/5, and Z expectation 3/5. Its basis probabilities do not supply the original overall solution scale or every relative sign.STEP 1A = diag(1,2);b=(1,1)STEP 2Classical x =(1,1/2)STEP 3State: (2,1)/√5STEP 4⟨Z⟩ = 4/5 − 1/5 =3/5
The normalised state gives probabilities 4/5 and 1/5, and Z expectation 3/5. Its basis probabilities do not supply the original overall solution scale or every relative sign.

Assume an efficiently preparable input state proportional to b and an efficient coherent representation of A, such as sparse-matrix or block-encoding access. Specify the matrix’s norm, sparsity or encoding scale, condition number, target state error and success probability. The condition number compares the largest and smallest relevant singular values. Small singular values can make inversion sensitive and expensive.

For non-Hermitian systems, a Hermitian embedding can be used, but its additional dimensions and access requirements should be included. If A is singular, define a pseudoinverse or a regularised problem and state which input components are allowed. A theorem for an invertible, well-conditioned matrix does not automatically apply to arbitrary data matrices.

Let A be diagonal with entries one and two, and b be the column one, one. The classical solution is one, one half. Its norm is square root of five over two, so the quantum solution state has amplitudes two over square root of five and one over square root of five. A Z measurement gives probabilities four fifths and one fifth.

Those probabilities let us estimate how much normalised solution weight lies in either coordinate. They do not directly give the signed pair one, one half. To recover that pair, we also need scale information and a measurement plan for phases or signs. In a large system, reconstructing all entries can require many observations, defeating a speedup aimed at producing only a state.

Now ask for the expectation of Z on the solution state. It is four fifths minus one fifth, or three fifths. This is a small classical output that can be estimated from repeated state preparations. The complete cost includes how often the state must be prepared to reach the requested uncertainty, not merely one state-preparation circuit.

The original linear-systems approach estimates eigenvalues coherently and uses a conditional inverse-like rotation. Later methods improve how the reciprocal response is implemented. Childs, Kothari and Somma obtained a much better dependence on output precision using Fourier or Chebyshev representations, while preserving important input and conditioning assumptions. Read the precision-improved linear-systems paper.

The phrase “exponentially improved dependence on precision” concerns a parameter in an algorithmic bound. It does not mean every linear system is solved exponentially faster than every classical method. Dimension, conditioning, matrix access, state preparation and output extraction must be considered together. Classical iterative solvers can be very effective when matrices have useful structure or good preconditioners.

Begin with the scientific quantity you need. If it is a scalar functional of x, determine whether it can be expressed as an accessible observable of the normalised solution state and whether the norm of x is also needed. Choose an encoding of A and a preparation of b. Bound conditioning and precision, construct the inverse-like filter and estimate the selection cost. Then design measurements and compare total resources with a matched classical solver.

Preconditioning may improve the condition number, but it is useful only if the preconditioner can itself be applied efficiently in the quantum access model. A dense classical inverse computed beforehand may solve the original problem already. The access cost of the transformed matrix must therefore accompany any improved conditioning claim.

Input-data error, discretisation error, inverse-filter error and measurement uncertainty are different contributions. If b is noisy or A poorly conditioned, a tiny circuit approximation error may have little scientific value. If the output observable requires many shots, a logarithmic state-error dependence does not automatically make the final estimate logarithmic in its classical accuracy.

Fault-tolerant implementation introduces rotation synthesis, reversible arithmetic, memory and scheduling costs. A practical resource estimate should identify the most expensive coherent primitive, its repetition count and its logical error budget. Short asymptotic notation is a guide to scaling, not a hardware bill of materials.

Exercise 1. For the worked system, what basis probabilities does the solution state produce, and what information is absent from those probabilities?

Check the worked answer

The probabilities are four fifths and one fifth. They omit the overall solution scale and do not by themselves reveal relative signs or complex phases. A quantum state and a printed classical vector are different output formats.

Exercise 2. A claim says runtime is logarithmic in dimension and therefore independent of data size. What should you ask?

Check the worked answer

Ask how A and b are accessed and prepared, what preprocessing and storage are required, how the condition number scales, what accuracy is requested and what output must be extracted. A favourable dimension factor does not make all those other costs disappear.

PAUSE & THINK

What is ⟨Z⟩ for the worked solution state?

Choose your answer
ONE IDEA FURTHER

Ready for the next step?

Your progress stays in this browser.