Tensor Network Rewriting Strategies for Satisfiability and Counting
arXiv:2004.06455 · doi:10.4204/EPTCS.340.3
Abstract
We provide a graphical treatment of SAT and #SAT on equal footing. Instances of #SAT can be represented as tensor networks in a standard way. These tensor networks are interpreted by diagrams of the ZH-calculus: a system to reason about tensors over C in terms of diagrams built from simple generators, in which computation may be carried out by transformations of diagrams alone. In general, nodes of ZH diagrams take parameters over C which determine the tensor coefficients; for the standard representation of #SAT instances, the coefficients take the value 0 or 1. Then, by choosing the coefficients of a diagram to range over B, we represent the corresponding instance of SAT. Thus, by interpreting a diagram either over the boolean semiring or the complex numbers, we instantiate either the decision or counting version of the problem. We find that for classes known to be in P, such as 2SAT and #XORSAT, the existence of appropriate rewrite rules allows for efficient simplification of the diagram, producing the solution in polynomial time. In contrast, for classes known to be NP-complete, such as 3SAT, or #P-complete, such as #2SAT, the corresponding rewrite rules introduce hyperedges to the diagrams, in numbers which are not easily bounded above by a polynomial. This diagrammatic approach unifies the diagnosis of the complexity of CSPs and #CSPs and shows promise in aiding tensor network contraction-based algorithms.
arXiv commentIn Proceedings QPL 2020, arXiv:2109.01534
References in corpus (8)
- Tensor renormalization group approach to 2D classical lattice models
- Renormalization algorithms for Quantum-Many Body Systems in two and higher dimensions
- Interacting Quantum Observables: Categorical Algebra and Diagrammatics
- ZH: A Complete Graphical Calculus for Quantum Computations Involving Classical Non-linearity
- Fast counting with tensor networks
- Obstacles to quantum annealing in a planar embedding of XORSAT
- The ZX&-calculus: A complete graphical calculus for classical circuits using spiders
- Completeness of the Phase-free ZH-calculus
Cited by in corpus (10)
- Tropical Tensor Network for Ground States of Spin Glasses
- ZX-calculus for the working quantum computer scientist
- Hyper-optimized approximate contraction of tensor networks with arbitrary geometry
- Completeness for arbitrary finite dimensions of ZXW-calculus, a unifying calculus
- An Algebraic Axiomatisation of ZX-calculus
- Picturing Counting Reductions with the ZH-Calculus
- Procedurally Optimised ZX-Diagram Cutting for Efficient T-Decomposition in Classical Simulation
- Tensor networks for -spin models
- ZX Graphical Calculus for Continuous-Variable Quantum Processes
- A Graphical #SAT Algorithm for Formulae with Small Clause Density