Classical simulation of quantum circuits is a critical tool for validating quantum hardware and probing the boundary between classical and quantum computational power. Existing state-of-the-art methods, notably tensor network approaches, have computational costs governed by the treewidth of the underlying circuit graph, making circuits with large treewidth intractable. This work rigorously analyzes and extends FeynmanDD, a decision diagram-based simulation method proposed in CAV 2025 by a subset of the authors. FeynmanDD evaluates sum-of-powers (SOP) expressions for circuit quantities such as output amplitudes and marginal probabilities using decision diagrams as the computational engine. We first show that given a variable ordering of width $w$, the complexity for constructing the diagram and evaluating the corresponding SOP for circuits over $\{\mathrm{H},\mathrm{T},\mathrm{CZ}\}$ is exponential in the linear rank-width of the circuit graph. As linear rank-width can be substantially smaller than treewidth and is at most larger than the treewidth by a logarithmic factor, our analysis demonstrates that for certain circuit families, FeynmanDD runs in polynomial time while contracting the corresponding tensor network requires exponential time and space. Moreover, we extend the original FeynmanDD method with weighted model counting, reducing SOP evaluation to two weighted counts on a single binary decision diagram. This takes the method beyond its original discrete gate sets to circuits with arbitrary single-qubit gates, with at most a threefold increase in linear rank-width. Given the prevalence of weighted model counting problems, from partition-function evaluation in many-body physics to probabilistic inference in artificial intelligence, this suggests that FeynmanDD has potential applications well beyond quantum circuit simulation.
翻译:暂无翻译