Abstract: This paper introduces a highly efficient protocol for Quantum State Preparation (QSP), a fundamental task for loading classical data into quantum systems. The proposed "SP+CSP" method achieves optimal $O(\log N)$ depth while minimizing "spacetime allocation"—the total qubit-time resource. The protocol is garbage-free, supports the use of "dirty" ancilla qubits, and enables the rapid, overlapping preparation of multiple states, offering significant speedups for quantum machine learning and simulation.
The Challenge of Quantum State Preparation
To execute many prominent quantum algorithms, such as the HHL algorithm for linear systems or various Quantum Machine Learning (QML) models, one must first "load" classical data into a quantum state. This process, known as Quantum State Preparation (QSP), typically involves a difficult trade-off between circuit depth and hardware resources.
Existing low-depth methods often require many extra "ancilla" qubits that remain active or entangled for the entire duration of the circuit, leading to significant spacetime inefficiency. Furthermore, implementing these rotations in fault-tolerant systems using discrete gate sets (like {H, S, T, CNOT}) often introduces additional depth overhead. This research addresses these inefficiencies by ensuring ancilla qubits are utilized only when necessary and can be released almost immediately.
The SP+CSP Protocol
The core innovation is the SP+CSP (State Preparation + Controlled State Preparation) protocol. Instead of attempting to prepare a complex $N$-dimensional state in a single step, the protocol follows a hierarchical strategy:
- Coarse Preparation (SP): A "coarse" version of the state is prepared on a small subset of qubits.
- Fine-Grained Control (CSP): These initial qubits then control the preparation of the remaining details on the rest of the register.
- Tree-like Data Copying: To circumvent hardware bottlenecks where a single control qubit must interact with many targets, the protocol uses a tree structure to rapidly distribute control information across ancillas.
The protocol is designed to be "garbage-free," meaning all ancillas are returned to their original state and unentangled from the data by the end of the operation. Notably, many of these ancillas can be "dirty" (uninitialized), allowing them to be borrowed from other concurrent computations.
Key Insights: Spacetime as a Resource
The authors advocate for "spacetime allocation" (SA)—the sum of the time each individual qubit is active—as a critical metric for quantum computing, analogous to "CPU core hours" in classical high-performance computing. Minimizing SA is vital for multi-tenant quantum hardware and parallel sub-routines.
Because the spacetime footprint of this method is so small, multiple state preparations can be "stacked" or pipelined. As the first state preparation completes its final gates, the second can begin using the newly freed ancillas. This allows for preparing $w$ states in $O(w + \log N)$ depth, effectively achieving constant depth per state in large batches.
Results and Future Outlook
For an $N$-dimensional state, the protocol achieves $O(\log N)$ depth and $O(N)$ spacetime allocation in the standard {U(2), CNOT} gate set, both of which are theoretically optimal. In discrete gate sets, the method achieves a depth of $O(\log N + \log(1/\epsilon))$, outperforming previous state-of-the-art methods that scaled more poorly with precision.
While the depth scaling is optimal, a small logarithmic gap remains between the best-known lower bound for spacetime allocation in discrete gate sets and these results. Future work may focus on closing this gap, further reducing the requirement for clean qubits, and adapting these tree-like structures to specific hardware topologies like square grids or heavy-hex layouts.
Summary updated