Towards Optimal Circuit Size for Sparse Quantum State Preparation

Rui Mao, Guojing Tian, Xiaoming SunarXiv 2024 · DOI

TL;DR

Researchers have developed two new algorithms, BE-QRAM and LT-QRAM, that significantly reduce the number of gates needed to prepare sparse quantum states. By exploiting patterns in basis states and using efficient "batching" techniques, they improved the circuit size by a factor of $O(\log n)$, reaching a complexity that is theoretically optimal for a broad class of algorithms.

What Problem Does This Paper Address?

Quantum State Preparation (QSP) is the "data loading" step of quantum computing—it’s how we translate classical information into a quantum superposition. For a general $n$-qubit state, this is incredibly expensive, requiring an exponential number of gates ($\Omega(2^n)$).

However, many practical quantum states are sparse, meaning only a small number ($s$) of the $2^n$ possible amplitudes are non-zero. Examples include GHZ states, W states, and Bethe states used in condensed matter physics. While previous algorithms for sparse state preparation (SQSP) were much better than the general case, they still scaled as $O(sn)$. Given that the absolute lower bound is $\Omega(s + n)$, there was a persistent "gap" of $O(n)$ in efficiency. This paper aims to close that gap.

Methods

The authors build upon the CVO-QRAM framework, which loads amplitudes one by one. They introduce two novel variations:

  1. BE-QRAM (Batch-Elimination QRAM): This algorithm groups the $s$ basis strings into batches. The key insight is that within a small batch of strings, many bit positions will share the same patterns. By applying a specific sequence of CNOT gates (an "elimination circuit"), the algorithm can "zero out" redundant 1s across the batch. This reduces the number of expensive multi-controlled gates needed to prepare the state.
  2. LT-QRAM (Lazy-Tree QRAM): This is tailored for states where the basis strings can be ordered in a Hamiltonian path (where each string differs from the next by only a few bit flips). It uses an "AND tree" register to track which basis state is currently being processed and "lazily" updates only the bits that change between steps.
  3. Lower Bound Proof: The authors used a counting argument to prove that for any "amplitude-unaware" algorithm (where the circuit structure depends on which states are present, but not their specific values), the complexity of $O(ns/\log n)$ is the best possible.

Datasets

The paper does not use external datasets but evaluates the algorithms using:

  • Randomly generated sparse states: To test the general-purpose BE-QRAM algorithm.
  • $U(1)$-invariant states (e.g., Dicke and Bethe states): These are physically significant states where the number of "down-spins" is fixed, providing a structured test case for the LT-QRAM algorithm.
  • Numerical Benchmarks: Simulations were run for systems up to 6,000 qubits, comparing CNOT gate counts against previous state-of-the-art methods.

Key Insights and Ideas

  • Pattern Redundancy: The "aha moment" for BE-QRAM is realizing that in any set of $k$ binary strings (where $k < \log n$), there are at most $2^k$ distinct bit patterns across all $n$ positions. Since $n$ is much larger than $2^k$, most positions are redundant and can be simplified using linear reversible logic.
  • Amplitude-Unawareness: The authors formalize a constraint common to almost all existing QSP algorithms: the "shape" of the circuit is determined by the support (the set of basis states), while the specific rotation angles are determined by the amplitudes. They show this separation of concerns imposes a fundamental limit on how small the circuit can be.
  • Hamiltonian Paths as Shortcuts: For structured states like the Bethe ansatz, you don't need to "rebuild" the state from scratch for every term. By following a Gray code-like path, you can transition between terms with minimal gate overhead.

Key Results

  • BE-QRAM achieves a circuit size of $O(ns/\log n + n)$, which is a $\log n$ factor improvement over previous $O(ns)$ methods.
  • LT-QRAM for $U(1)$-invariant states achieves $O(\binom{n}{k} \log n)$, outperforming recent specialized work by a factor of $O(n / \log n)$.
  • Optimality: The authors proved a matching lower bound, showing that BE-QRAM is asymptotically optimal for the class of amplitude-unaware algorithms.
  • Numerical Advantage: In tests with 6,000 qubits, the "normalized" CNOT count for the new algorithms continued to drop as the number of qubits increased, whereas previous methods remained flat (see Fig. 3 in the paper).

Limitations and Future Work

  • The "Amplitude-Aware" Gap: The lower bound only applies to algorithms that don't look at the amplitude values to decide the circuit structure. It remains an open question if an "amplitude-aware" algorithm could reach the absolute theoretical floor of $O(s + n)$.
  • Ancilla Requirements: LT-QRAM requires $O(n)$ ancillary qubits. While this is linear, some quantum architectures are extremely qubit-constrained, making this a trade-off between space and gate count.
  • Hamiltonian Path Discovery: While finding the shortest Hamiltonian path is NP-hard in the general case, the authors suggest that for many physically relevant states, these paths are known or easy to compute. Future work could involve automated heuristics for finding these paths in arbitrary sparse states.

Summary updated

Abstract

Compared to general quantum states, the sparse states arise more frequently in the field of quantum computation. In this work, we consider the preparation for $n$-qubit sparse quantum states with $s$ non-zero amplitudes and propose two algorithms. The first algorithm uses $O(ns/\log n + n)$ gates, improving upon previous methods by $O(\log n)$. We further establish a matching lower bound for any algorithm which is not amplitude-aware and employs at most $\operatorname{poly}(n)$ ancillary qubits. The second algorithm is tailored for binary strings that exhibit a short Hamiltonian path. An application is the preparation of $U(1)$-invariant state with $k$ down-spins in a chain of length $n$, including Bethe states, for which our algorithm constructs a circuit of size $O\left(\binom{n}{k}\log n\right)$. This surpasses previous results by $O(n/\log n)$ and is close to the lower bound $O\left(\binom{n}{k}\right)$. Both the two algorithms shrink the existing gap theoretically and provide increasing advantages numerically.
BibTeX
@misc{mao2024towards,
  author = {Rui Mao and Guojing Tian and Xiaoming Sun},
  title = {{Towards Optimal Circuit Size for Sparse Quantum State Preparation}},
  year = {2024},
  eprint = {2404.05147},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2404.05147},
}
Figure