A divide-and-conquer algorithm for quantum state preparation

Israel F. Araujo, Daniel K. Park, Francesco Petruccione, Adenilton J. da Silva

Abstract

Advantages in several fields of research and industry are expected with the rise of quantum computers. However, the computational cost to load classical data in quantum computers can impose restrictions on possible quantum speedups. Known algorithms to create arbitrary quantum states require quantum circuits with depth $O(N)$ to load an $N$-dimensional vector. Here, we show that it is possible to load an $N$-dimensional vector with exponential time advantage using a quantum circuit with polylogarithmic depth and entangled information in ancillary qubits. Results show that we can efficiently load data in quantum devices using a divide-and-conquer strategy to exchange computational time for space. We demonstrate a proof of concept on a real quantum device and present two applications for quantum machine learning. We expect that this new loading strategy allows the quantum speedup of tasks that require to load a significant volume of information to quantum devices.

Introduction: The Data-Loading Bottleneck

Quantum computing promises revolutionary speedups, but it faces a significant hurdle: the "data-loading bottleneck." While quantum algorithms can process information exponentially faster than classical ones, the initial step of Quantum State Preparation—loading a classical $N$-dimensional vector into a quantum state—often negates these gains. Traditional methods typically require a circuit depth that scales linearly with $N$. In the current Noisy Intermediate-Scale Quantum (NISQ) era, where qubits have limited coherence times, such long execution times are prohibitive.

A Divide-and-Conquer Strategy

To overcome this, a new approach utilizes a divide-and-conquer strategy. Instead of the traditional sequential method, the input vector is decomposed into a hierarchical tree structure. The algorithm prepares smaller sub-vectors in parallel and then combines them to form the final state.

The hierarchical tree structure used to decompose an N-dimensional vector into smaller sub-problems.

This bottom-up construction allows for a fundamental trade-off: by using more qubits (increasing circuit width), the algorithm significantly reduces the time required (decreasing circuit depth). While standard methods use $O(\log N)$ qubits but take $O(N)$ time, this method uses $O(N)$ qubits to achieve a polylogarithmic depth of $O(\log^2 N)$.

Quantum Forking and Parallelism

The key mechanism for combining these parallel sub-states is Quantum Forking. This process employs Controlled-Swap (CSWAP) gates to entangle data registers with ancillary (helper) qubits.

The Quantum Forking mechanism using CSWAP gates to combine sub-states in parallel.

Although the resulting state is entangled with ancillary qubits rather than being a "pure" state, the researchers demonstrate that this format is perfectly suitable for many quantum applications, such as the Swap Test or variational classifiers. The parallelism enabled by this tree-like structure is what drives the jump from linear to polylogarithmic depth.

Experimental Results and Machine Learning Applications

The algorithm was validated using four classic datasets from the UCI Machine Learning Repository: Iris, Haberman’s Survival, Banknote Authentication, and Pima Indians Diabetes.

Key findings include:

  • Theoretical Speedup: Circuit depth is reduced from $O(N)$ to $O(\log^2 N)$. For a 1024-dimensional vector, the depth drops from over 4000 to just 388.
  • Hardware Validation: A proof-of-concept was successfully executed on the 5-qubit ibmq_rome processor, loading a 4-dimensional vector with high fidelity.
  • ML Performance: Simulations of a Hierarchical Quantum Classifier showed that this encoding method achieves classification accuracy statistically equivalent to traditional amplitude encoding but with much lower depth for large datasets.

Conclusion

The divide-and-conquer approach offers a viable path toward efficient data loading in the NISQ era. While it requires a higher qubit count ($O(N)$), the exponential reduction in circuit depth makes it a powerful tool for tasks requiring large volumes of data. Future work will focus on "uncomputing" ancillary qubits to broaden the algorithm's compatibility and optimizing for hardware with limited connectivity.

Summary updated

BibTeX
@inproceedings{araujo2021divide,
  author = {Israel F. Araujo and Daniel K. Park and Francesco Petruccione and Adenilton J. da Silva},
  title = {{A divide-and-conquer algorithm for quantum state preparation}},
  booktitle = {Scientific},
  year = {2021},
  doi = {10.1038/s41598-021-85474-1},
}
Figure