Decision Diagrams for Symbolic Verification of Quantum Circuits

Xin Hong, Wei‐Jia Huang, Wei‐Chen Chien, Yuan Feng, Min-Hsiu Hsieh, Sanjiang Li, Chia-Shun Yeh, Mingsheng Ying · DOI

Abstract

With the rapid development of quantum computing, automatic verification of quantum circuits becomes more and more important. While several decision diagrams (DDs) have been introduced in quantum circuit simulation and verification, none of them supports symbolic computation. Algorithmic manipulations of symbolic objects, however, have been identified as crucial, if not indispensable, for several verification tasks. This paper proposes the first decision-diagram approach for operating symbolic objects and verifying quantum circuits with symbolic terms. As a notable example, our symbolic tensor decision diagrams (symbolic TDD) could verify the functionality of the 160-qubit quantum Fourier transform circuit within three minutes. Moreover, as demonstrated on Bernstein-Vazirani algorithm, Grover's algorithm, and the bit-flip error correction code, the symbolic TDD enables efficient verification of quantum circuits with user-supplied oracles and/or classical controls.

Introduction

As quantum processors scale toward hundreds and thousands of qubits, verifying that a circuit performs its intended function becomes a massive bottleneck. Existing tools like Decision Diagrams (DDs) and Tensor Networks are effective for simulating specific inputs but struggle with functional verification—proving a circuit works for all possible inputs. For circuits like the Quantum Fourier Transform (QFT), standard DDs grow exponentially ($O(2^n)$ nodes) because each input basis state produces a unique set of output amplitudes. Verifying such circuits traditionally requires $2^n$ separate simulations or massive, memory-intensive diagrams. Furthermore, algorithms relying on classical control signals or oracles (e.g., Grover’s or Bernstein-Vazirani) are difficult to verify generally without symbolic representation.

Methodology: Symbolic Tensor Decision Diagrams

The authors introduce Symbolic Tensor Decision Diagrams (symTDDs), extending standard TDDs by allowing edge weights to be symbolic objects—complex-valued tensors over Boolean symbols—rather than static complex numbers.

Symbolic weights and a sample symbolic tensor decision diagram (symTDD).

Key technical components include:

  • Symbolic Weights: Edge weights represent functions of input symbols (e.g., $s$ and its complement $s'$).
  • Normalization & Reduction: A "local normalization" scheme ensures the representation is canonical. This involves extracting common symbolic factors from child nodes and pushing them up the diagram.
  • RR3 Reduction Rule: A new rule merges nodes in "tower" structures, which are common in circuits like the Toffoli gate or error correction codes.
  • Canonicity: The paper formally proves that under a fixed index order, every symbolic tensor has a unique reduced symTDD representation.

Benchmarks and Results

The symTDD framework was evaluated against standard quantum algorithmic benchmarks, demonstrating significant efficiency gains by exploiting structural redundancies.

Verification time for the Quantum Fourier Transform (QFT) circuit as a function of qubit count.
  • Quantum Fourier Transform (QFT): While a 30-qubit QFT requires ~2 billion nodes in a standard TDD, it needs only ~10,000 nodes in a symTDD. The authors successfully verified a 160-qubit QFT in less than 180 seconds using only 8GB of RAM.
  • Bernstein-Vazirani (BV): A 300-qubit BV circuit was verified in under 10 seconds.
  • Grover’s Algorithm: For an 8-qubit Grover’s algorithm, standard TDDs require nearly 50 minutes (running $2^n$ simulations). symTDD achieved the same result in just 29 seconds via a single symbolic run.
  • Error Correction: The tool verified that a bit-flip code correctly identifies and fixes errors by treating the error location as a symbolic variable.

Conclusion

While symTDD offers an exponential advantage for structured circuits, it is not a universal solution; Grover’s algorithm still shows non-polynomial growth as iterations increase. Future work involves integrating symTDD with SMT solvers like Z3 to enable complex queries about error subspaces and optimizing reduction rules for a wider variety of multi-controlled gates.

Summary updated

BibTeX
@inproceedings{hong2023decision,
  author = {Xin Hong and Wei‐Jia Huang and Wei‐Chen Chien and Yuan Feng and Min-Hsiu Hsieh and Sanjiang Li and Chia-Shun Yeh and Mingsheng Ying},
  title = {{Decision Diagrams for Symbolic Verification of Quantum Circuits}},
  booktitle = {Qce},
  year = {2023},
  doi = {10.1109/qce57702.2023.00111},
}
Figure