Qubitization
Rough overview (in words)
Qubitization has the following motivation: we are given a block-encoding \(U_A\) of a Hermitian operator \(A\), and we wish to manipulate \(A\)—e.g., implement \(A^2\), or more generally some function \(f(A)\) [1]. However, the eigenvalues of \(U_A\) are typically unrelated to those of \(A\), and plain repeated applications of \(U_A\) do not in general produce the desired behavior. Qubitization converts the block-encoding \(U_A\) into a unitary operator \(W\) (sometimes called a qubiterate or a qubitized quantum walk operator) having the following guaranteed advantageous properties:
- \(W\) is a block-encoding of the operator \(A\).
- The spectrum of \(W\) has a nice relation to the spectrum of \(A\).
- Repeated applications of \(W\) leads to structured behavior that can be cleanly analyzed.
This combination of features means that qubitization can be used for applying polynomial transformations to the spectrum of \(A\). For example, repeated application of \(W\) implements Chebyshev polynomials of \(A\), while other polynomials can also be implemented by using quantum signal processing [2, 1, 3].
The key observation is that a qubitization unitary \(W\) has eigenvalues and eigenvectors that relate in a nice way to those of \(A\). Thus one can also perform quantum phase estimation on \(W\) to learn these quantities [4, 5], providing a potentially cheaper alternative to such tasks compared to approaches based on explicit Hamiltonian simulation for implementing \(U=e^{iAt}\).
Rough overview (in math)
We are given a \((1, m, 0)\)-block-encoding \(U_A\) of Hermitian \(A\) such that
where \(\ket{0^m}\) denotes \(\ket{0}^{\otimes m}\). First we will assume \(U_A\) is also Hermitian (implying \(U_A^2 = I\), where \(I\) is the identity matrix). Let \(A\) have spectral decomposition \(A = \sum_\lambda \lambda \ketbra{\lambda}{\lambda}\). An application of \(U_A\) to an eigenstate \(\ket{\lambda}\) of \(A\) gives
where \(\ket{\perp_{0^m, \lambda}}\) is a state perpendicular to \(\ket{0^m}\).1 Noting \(U_A^2=I\) reveals that the 2D subspace \(S_\lambda\) spanned by \(\{ \ket{0^m}\ket{\lambda}, \ket{\perp_{0^m, \lambda}} \}\) is invariant under the action of \(U_A\). \(U_A\) restricted onto \(S_\lambda\) can be described by the matrix
which is a 2D reflection with eigenvalues \(\pm 1\). Clearly, repeated application of (self-inverse) \(U_A\) can have limited effect on any input state. Qubitization uses a reflection \(Z_{\ket{0^m}} = (2\ketbra{0^m}{0^m} - I)\) to transform \(U_A\) into a Grover-like operator \(W = Z_{\ket{0^m}} U_A\) which has the following matrix when restricted onto the invariant subspace \(S_\lambda\) in the \(\{ \ket{0^m}\ket{\lambda}, \ket{\perp_{0^m, \lambda}} \}\) basis
showing that \(W\) is still a \((1, m, 0)\)-block-encoding of \(A\). This has the form of a \(Y\)-axis rotation
where \(\theta_\lambda = \arccos(\lambda)\). Therefore, \(W\) has eigenvalues \(e^{\pm i \arccos(\lambda)}\) with respective eigenvectors \(\left(\ket{0^m} \ket{\lambda} \pm i \ket{\perp_{0^m, \lambda}} \right)/\sqrt{2}\), which can be accessed using quantum phase estimation.
Furthermore, we can see that on the span of the subspaces \(S_\lambda\) repeated application of \(W\) acts as
where \(T_d(\cdot)\) and \(U_d(\cdot)\) are degree-\(d\) Chebyshev polynomials of the first and second kind, respectively. Therefore, \(W^d\) applies the polynomial transformation \(T_d\) to each eigenvalue of \(A\) thereby implementing \(T_d(A)\).
Dominant resource cost (gates/qubits)
The resource cost of qubitization is inherited from the cost of the block-encoding. Given a Hermitian \((\alpha, m, 0)\)-block-encoding \(U_A\), the qubitization operator \(W\) is a (non-Hermitian) \((\alpha, m, 0)\)-block-encoding, and it uses no additional qubits. The operation \(Z_{\ket{0^m}} = (2\ketbra{0^m}{0^m} - I)\) can be implemented (up to global phase) with an \(m\)-qubit controlled \(Z\) gate, equivalent to an \(m\)-qubit Toffoli up to single-qubit gates. An example qubitization circuit is shown below in Fig. 1 for \(m=3\). Implementing a block-encoding of a degree-\(d\) Chebyshev polynomial applied to \(A\) requires \(d\) calls to \(U_A\) and \(Z_{\ket{0^m}}\).
Figure 1: An example qubitization circuit using the Hermitian \((1,3,0)\)-block-encoding \(U_A\).
If the block-encoding \(U_A\) is not Hermitian, qubitization can be achieved using the construction of [1, Lemma 10] that uses one additional qubit and one call to controlled \(U_A\) and controlled \(U_A^\dag\) to implement the Hermitian block-encoding
An alternative to qubitization is based on quantum singular value transformation that uses the sequence \(Z_{\ket{0^m}} U_A^\dag Z_{\ket{0^m}} U_A\), analogous to the earlier \(W^2\), acting as
on a 2D subspace analogous to \(S_\lambda\). The approach can be extended to odd-degree polynomials with a single additional application of \(Z_{\ket{0^m}} U_A\) [3]. The advantage of this approach is that it does not require \(U_A\) to be Hermitian, thus there is no need for an additional qubit or calls to controlled \(U_A^{\pm 1}\). This approach may be referred to as "quantum eigenvalue transformation" [6, 7] as this is a special case of quantum singular value transformation just applied to Hermitian \(A\).
Caveats
The original formulation of qubitization [1] discussed above requires a Hermitian or normal block-encoded matrix \(A\). The concept can be extended to general (non-square) matrices via quantum singular value transformation, providing a significant generalization, however in some cases quantum signal processing and its generalized versions [8, 9] can exploit additional structure that comes for example from the extra symmetries of Hermitian block-encodings, leading to potential constant factor savings.2
Example use cases
- Some quantum algorithms in quantum chemistry that compute energies perform phase estimation on a qubitization operator \(W\) implemented via calls to a block-encoding of the electronic structure Hamiltonian. This avoids the approximation error incurred when performing phase estimation on \(e^{iHt}\), implemented via Hamiltonian simulation [4, 5].
- Qubitization acts as a precursor to quantum singular value transformation, which extends the concept to general matrices and unifies it with quantum signal processing.
Further reading
- Original introduction of qubitization [1] and quantum singular value transformation [3].
- A pedagogical overview of quantum signal processing, its lifting to quantum singular value transformation, and their applications [10].
- Reference [6, Chapters 7 & 8] provides an accessible derivation of qubitization and quantum singular value transformation.
Bibliography
-
Guang Hao Low and Isaac L. Chuang. Hamiltonian simulation by qubitization. Quantum, 3:163, 2019. arXiv: https://arxiv.org/abs/1610.06546. doi:10.22331/q-2019-07-12-163.
-
Guang Hao Low and Isaac L. Chuang. Optimal hamiltonian simulation by quantum signal processing. Physical Review Letters, 118(1):010501, 2017. arXiv: https://arxiv.org/abs/1606.02685. doi:10.1103/PhysRevLett.118.010501.
-
András Gilyén, Yuan Su, Guang Hao Low, and Nathan Wiebe. Quantum singular value transformation and beyond: exponential improvements for quantum matrix arithmetics. In Proceedings of the 51st ACM Symposium on the Theory of Computing (STOC), 193–204. 2019. arXiv: https://arxiv.org/abs/1806.01838. doi:10.1145/3313276.3316366.
-
David Poulin, Alexei Kitaev, Damian S. Steiger, Matthew B. Hastings, and Matthias Troyer. Quantum algorithm for spectral measurement with a lower gate count. Physical Review Letters, 121:010501, 7 2018. arXiv: https://arxiv.org/abs/1711.11025. URL: https://link.aps.org/doi/10.1103/PhysRevLett.121.010501, doi:10.1103/PhysRevLett.121.010501.
-
Dominic W. Berry, Mária Kieferová, Artur Scherer, Yuval R. Sanders, Guang Hao Low, Nathan Wiebe, Craig Gidney, and Ryan Babbush. Improved techniques for preparing eigenstates of fermionic hamiltonians. npj Quantum Information, 4(1):22, 5 2018. arXiv: https://arxiv.org/abs/1711.10460. URL: https://doi.org/10.1038/s41534-018-0071-5, doi:10.1038/s41534-018-0071-5.
-
Lin Lin. Lecture notes on quantum algorithms for scientific computation. arXiv: https://arxiv.org/abs/2201.08309, 2022.
-
Sam McArdle, András Gilyén, and Mario Berta. Quantum state preparation without coherent arithmetic. arXiv: https://arxiv.org/abs/2210.14892, 2022.
-
Jeongwan Haah. Product decomposition of periodic functions in quantum signal processing. Quantum, 3:190, 2019. arXiv: https://arxiv.org/abs/1806.10236. doi:10.22331/q-2019-10-07-190.
-
Rui Chao, Dawei Ding, András Gilyén, Cupjin Huang, and Márió Szegedy. Finding angles for quantum signal processing with machine precision. arXiv: https://arxiv.org/abs/2003.02831, 2020.
-
John M. Martyn, Zane M. Rossi, Andrew K. Tan, and Isaac L. Chuang. Grand unification of quantum algorithms. Physical Review X, 2(4):040203, 2021. arXiv: https://arxiv.org/abs/2105.02859. doi:10.1103/PRXQuantum.2.040203.
-
If \(\lambda=\pm 1\), then there is no need for \(\ket{\perp_{0^m, \lambda}}\), and the subspace \(S_\lambda\) becomes one dimensional. ↩
-
Consider for example Hamiltonian simulation, where QSVT separately implements \(\sin(t H)\) and \(\cos(t H)\) using a block-encoding \(U_H\) of the Hamiltonian \(H\), and applies a 3-step oblivious amplification procedure on top of linear combination of unitaries to implement \(\exp( i t H)\) [3]. Meanwhile, quantum signal processing implements \(\exp( i t H)\) directly but requires an additional ancilla qubit and controlled access to a Hermitian block-encoding \(U'_H\), which, when implemented via Eq. [eq:genQubitiz], uses both controlled \(U_H\) and \(U_H^\dagger\) resulting in a factor of \(\sim 4\) overhead. Altogether these considerations suggest that the QSVT-based approach might have a slightly better constant factor overhead, particularly when controlled \(U_H\) is significantly more costly to implement than \(U_H\). If \(U_H\) is already Hermitian then quantum signal processing can have an improved complexity. ↩