Papers
Topics
Authors
Recent
Search
2000 character limit reached

Equivalence Checking of Quantum Circuits via Path-Sum and Weighted Model Counting

Published 27 Apr 2026 in cs.SC | (2604.24504v1)

Abstract: Equivalence checking of quantum circuits is a central verification task in quantum computing, ensuring the correctness of circuit optimizations, hardware mappings, and compilation pipelines. Among the primary symbolic methods for this purpose, the path-sum formalism provides a compact representation with powerful reduction rules that yield a canonical form for the classically simulable Clifford fragment, but confluence fails beyond the Clifford fragment. We introduce a new weighted model counting (WMC) encoding for path-sums and combine it with the existing path-sum reductions to obtain a verifier that is both complete and efficient. Our method applies reductions whenever possible and invokes the WMC-based decision procedure on the residual path-sum, yielding a complete semantic check up to a global phase. We implement the approach and evaluate it on standard benchmarks. Results show that the hybrid method outperforms either component in isolation and competes with state-of-the-art tools.

Summary

  • The paper introduces a hybrid methodology that unifies path-sum symbolic reduction and weighted model counting to achieve completeness up to global phase.
  • The approach reduces symbolic complexity and improves runtime efficiency, outperforming reduction-only and model counting techniques on benchmark circuits.
  • The QuPRS tool implementation demonstrates robust sensitivity to phase errors, offering scalable verification for diverse quantum circuits.

Equivalence Checking of Quantum Circuits via Path-Sum and Weighted Model Counting

Overview

The paper addresses the challenge of quantum circuit equivalence checking, a crucial verification task throughout quantum compilation and optimization pipelines. The authors combine algebraic path-sum calculus with a novel weighted model counting (WMC) encoding to develop a hybrid methodology. Their approach achieves completeness up to global phase, outperforming either symbolic reduction or model-based reasoning alone. The implementation is shown to be competitive with, and often superior to, state-of-the-art quantum circuit equivalence checkers across a variety of benchmarks.

Motivation and Problem Setting

Quantum circuits execute sequences of unitary operations on qubits, often undergoing transformations as they are mapped to hardware or optimized. It is essential to certify that these transformations preserve circuit semantics, i.e., the induced unitary is unchanged or differs only by global phase. The exact equivalence checking problem is NQP-hard, precluding polynomial-time exhaustive solutions [tanaka2010exact].

Existing tools employ either:

  • Equational reasoning: symbolic rewriting systems (e.g., path-sum or ZX-calculus) capable of efficiently establishing equivalence for specific fragments, but incomplete or non-confluent on general circuits [amy2018towards, coecke2017picturing].
  • Model-based reasoning: semantic encodings (e.g., decision diagrams, WMC, tree automata) offer completeness, but generally incur high computational cost on large or structurally challenging circuits [mei2024equivalence, hong2022tensor, chen2025popl].

The paper seeks to synthesize the strengths of both approaches via a hybrid method that leverages path-sum calculus for reduction and WMC for rigorous semantic verification.

Path-Sum Calculus and Its Limitations

The path-sum formalism represents quantum circuits as algebraic sums over computational paths, with each path contributing a complex amplitude determined by a phase polynomial and an output function. Symbolic reduction rules (notably for the Clifford group) allow simplification to canonical forms when applicable, with completeness and confluence limited to specific gate fragments [amy2018towards, vilmart2021structure]. Beyond Clifford, path-sum reduction becomes incomplete and non-confluent, leaving residual symbolic objects that cannot be handled by standard WMC encodings.

Weighted Model Counting for Quantum Circuit Equivalence

To overcome confluence barriers and achieve completeness, the authors introduce a new WMC encoding for reduced path-sums. The semantic equivalence problem is recast as a constraint system over Boolean variables, with weights encoding the quantum amplitudes contributed by each computational path. Diagonal amplitudes (required for equivalence up to global phase) are summed using symbolic weights, and the model count is interpreted in the appropriate commutative semiring.

Strong claims include:

  • Completeness up to global phase: The hybrid methodology is guaranteed to resolve equivalence for any gate set, as WMC offers a full semantic check on the residual path-sum.
  • Synergy of reduction and counting: Reduction rules aggressively simplify circuits, minimizing the symbolic complexity passed to the model counting phase. Empirical results confirm that the hybrid method outperforms reduction or WMC alone.

The encoding generalizes prior approaches, explicitly supporting phase polynomials and symbolic path conditions, which are not captured in prior WMC solutions such as Quokka [mei2024equivalence, mei2024simulating].

Implementation and Numerical Evaluation

A Python-based tool, QuPRS, implements the proposed hybrid strategy, integrating symbolic algebra (via Symengine/SymPy) with the GPMC weighted model counter. The tool supports three operational modes:

  • Reduction-only (RR)
  • Counting-only (WMC)
  • Hybrid (reduction followed by counting)

Comprehensive benchmarking demonstrates:

  • Hybrid mode superiority: Across 35 algorithmic and structural benchmarks (e.g., GHZ, QFT, QAOA, QPE), hybrid mode solved 29 instances, outperforming RR (14) and WMC (28).
  • Competitive runtime: Hybrid mode exhibits best-in-class performance, especially on circuits with many distinct rotation angles or phase parameters, where symbolic simplification is limited but precise numerical reasoning is essential.
  • Robustness and sensitivity: Injecting random rotation gates to simulate phase errors, QuPRS detected the most discrepancies (28/37), highlighting its enhanced detection of subtle semantic differences compared to tools based on structural or combinatorial reasoning.

Comparisons with other state-of-the-art frameworks (Quokka, Qcec, PyZX, SliQEC, TDD, Feymann) show that QuPRS offers complementary strengths. While Qcec excels in structural symmetry (e.g., Grover, QAOA), and Quokka is optimal on selected variational circuits, QuPRS dominates on QFT, phase estimation, and circuits involving parameterized rotations.

Implications and Future Directions

The integration of symbolic algebraic reasoning with rigorous semantic model counting presents a scalable, practical solution to the quantum circuit equivalence checking problem. The hybrid framework achieves completeness up to global phase, remains efficient in practice by exploiting structural reductions, and provides robust sensitivity to numerical differences arising from phase or gate parameter discrepancies.

Potential future directions include:

  • Unified portfolio solvers: Combining complementary tools (QuPRS, Quokka, Qcec) in interactive or portfolio modes may further improve coverage and efficiency.
  • Extension to parameterized and open-system circuits: Adapting the hybrid encoding to handle circuits with symbolic parameters, open-system operations (e.g., measurement, noise), and higher-level quantum programs.
  • Integration with compilation and error diagnosis pipelines: Embedding the verification methodology in production quantum toolchains could enhance reliability, facilitate automated bug hunting, and reproduce subtle quantum phenomena with formal guarantees.

The methodology opens avenues for exploiting advances in symbolic algebra and model counting, and provides a tractable bridge between algebraic and semantic verification of quantum circuits.

Conclusion

The paper demonstrates a hybrid approach to quantum circuit equivalence checking that unifies path-sum algebraic reductions and weighted model counting. The resulting framework achieves completeness up to global phase, improves practical efficiency, and exhibits high sensitivity to both structural and numerical errors. The QuPRS implementation and empirical evaluation establish its competitive standing against state-of-the-art equivalence checking tools, particularly on circuits demanding precise numerical reasoning. The hybrid method offers a scalable and robust solution for quantum program verification and lays foundation for future developments in quantum circuit semantics and formal verification.

Paper to Video (Beta)

No one has generated a video about this paper yet.

Whiteboard

No one has generated a whiteboard explanation for this paper yet.

Open Problems

We haven't generated a list of open problems mentioned in this paper yet.

Collections

Sign up for free to add this paper to one or more collections.