How Block Encoding Puts Non-Unitary Problems Inside Quantum Circuits
Block encoding represents a matrix as part of a larger unitary operation, allowing quantum algorithms to manipulate its spectral properties while exposing important implementation costs.
By The Quantum Lab desk
Written in-house by the The Quantum Lab desk — an explainer, not a report of a news event.

- Block encoding embeds a scaled matrix within a larger unitary circuit.
- Polynomial transformations can then act on the matrix’s singular values or eigenvalues.
- Practical cost depends heavily on normalization, data access and circuit complexity.
Quantum circuits implement unitary operations, but many computational problems involve matrices that are not unitary. Block encoding addresses this mismatch by constructing a larger unitary whose selected subspace acts like the target matrix. Ancilla qubits identify that subspace and provide the extra dimensions needed for a valid unitary operation.
In a typical construction, projecting the ancillas onto a reference state selects a block proportional to a matrix A, usually written conceptually as A divided by a normalization factor. That factor must be at least as large as an appropriate norm of A and directly affects algorithmic efficiency. The encoded operation is useful even when the algorithm does not literally measure and postselect the ancillas after every use.
Block encodings are central to quantum singular value transformation, which applies carefully chosen sequences of controlled operations and single-qubit rotations. These sequences approximate polynomial functions of the encoded matrix’s singular values, or of its eigenvalues in suitable Hermitian settings. Different polynomial choices can produce filtering, thresholding or approximate inversion operations.
This framework gives a common language for algorithms involving linear systems, Hamiltonian simulation and spectral analysis. For example, approximating the reciprocal function over a restricted interval provides a route to manipulating a state according to a matrix inverse. The required polynomial degree grows when the approximation must resolve small singular values, connecting performance to quantities such as the condition number.
A block encoding is not automatically an efficient data-loading mechanism. Its value depends on whether the required unitary can be built with reasonable gate counts, ancilla resources and error, as well as how the input state is prepared and the output is measured. These costs can dominate the formal polynomial transformation and must be included when assessing an algorithm’s practical relevance.
This story started as a thread in our Discord. Join the discussion with the researchers and engineers who work on it.
Related
Open-source compiler cuts logical-qubit overhead by a third
A new lattice-surgery scheduler squeezes routing overhead out of fault-tolerant circuits, and it ships under a permissive license.

A shared benchmark suite for logical qubits gets a first draft
Vendors publish incomparable numbers. A working group wants one protocol everyone can run.

Surface-code processor stays below threshold as it scales to 1,000 qubits
The logical error rate keeps falling as the code distance grows — the clearest sign yet that adding qubits now buys reliability instead of noise.

