Equivalence Checking of Quantum Finite-State Machines

Qisheng Wang, Junyi Liu, Mingsheng YingJ. Comput. Syst. sci 2019 · DOI

Introduction

Verification is a cornerstone of reliable computing. In classical engineering, Mealy machines—finite-state machines that produce outputs based on current states and inputs—are fundamental for verifying hardware circuits and communication protocols. As quantum computing matures, a similar formal toolkit is required to ensure the correctness of quantum hardware and software.

Researchers from Tsinghua University and the University of Technology Sydney have introduced a unified model called Quantum Mealy Machines (QMMs). This framework provides efficient algorithms to determine if two quantum systems exhibit identical behavior, a critical task for optimization and verification.

The Challenge of Quantum Measurement

In classical computing, checking equivalence is a well-understood problem in automata theory. However, the quantum realm introduces a significant complication: measurement. Observing a quantum state inherently alters it.

A quantum circuit diagram illustrating a sequence of operations and measurements, which can be modeled as a Quantum Mealy Machine.

Previous research addressed quantum equivalence in an ad hoc manner for specific automata types. These models often failed to account for the timing of measurements—the "scheduler"—which drastically affects outcomes. The QMM model fills this gap by formally incorporating a scheduler that specifies exactly when measurements occur during computation.

Methodology: Quantum Mealy Machines

A QMM is defined as a 5-tuple consisting of input/output alphabets, a Hilbert space (state space), unitary operators for transitions, and quantum measurements for outputs.

Key Innovations

  1. The Scheduler: Equivalence is defined as two states producing identical output probabilities for every possible input word and every possible scheduler.
  2. Polynomial-Time Algorithms: The authors developed algorithms to check state equivalence. By utilizing a "lazy" Gram-Schmidt process to maintain an orthogonal set of operators, they reduced the computational complexity from a naive $O(mn^8)$ to $O(mn^6)$.
  3. Minimization and Complexity: To find the smallest possible QMM (minimization), the problem was translated into polynomial inequalities. Using real algebraic geometry, the authors proved that QMM minimization resides within the PSPACE complexity class.

Experimental Evaluation

The algorithms were tested against a benchmark suite of 30 cases, ranging from 2-dimensional (single qubit) to 32-dimensional (5 qubits) systems. These benchmarks included models of common quantum circuits such as Hadamard gates, CNOT gates, and Bell state preparations.

The $O(mn^6)$ algorithm demonstrated significant performance gains. For a 32-dimensional test case, the runtime was reduced from 60.29 seconds (using $O(n^8)$ methods) to just 2.58 seconds.

Theoretical Insights

  • Finite Experimentation: The authors proved that testing sequences up to size $n^2 - 1$ is sufficient to guarantee equivalence for $n$-dimensional states.
  • Mixed States: Unlike previous work focused on pure states, this framework applies to mixed states (density operators), making it more applicable to real-world, noisy quantum systems.
  • Real-Valued Optimization: For machines using only real numbers, the equivalence checking bound improves to $\frac{1}{2}n(n+1)-1$.

Conclusion and Future Directions

While the QMM framework provides a robust foundation, challenges remain. Extending these techniques to full quantum programs involving loops and recursion is an open problem. Additionally, while the algorithms are polynomial in terms of dimension $n$, $n$ itself grows exponentially with the number of qubits. Future research will focus on symbolic reachability and compression techniques to handle large-scale quantum processors.

Summary updated

BibTeX
@article{wang2019equivalence,
  author = {Qisheng Wang and Junyi Liu and Mingsheng Ying},
  title = {{Equivalence Checking of Quantum Finite-State Machines}},
  journal = {J. Comput. Syst. sci},
  year = {2019},
  doi = {10.1016/j.jcss.2020.08.004},
}
Figure