IGMaxHS -- An Incremental MaxSAT Solver with Support for XOR Clauses

Ole Lübke
2024-10-21
Abstract:Recently, a novel, MaxSAT-based method for error correction in quantum computing has been proposed that requires both incremental MaxSAT solving capabilities and support for XOR constraints, but no dedicated MaxSAT solver fulfilling these criteria existed yet. We alleviate that and introduce IGMaxHS, which is based on the existing solvers iMaxHS and GaussMaxHS, but poses fewer restrictions on the XOR constraints than GaussMaxHS. IGMaxHS is fuzz tested with xwcnfuzz, an extension of wcnfuzz that can directly output XOR constraints. As a result, IGMaxHS is the only solver that reported neither incorrect unsatisfiability verdicts nor invalid models nor incoherent cost model combinations in a final fuzz testing comparison of all three solvers with 10000 instances. We detail the steps required for implementing Gaussian elimination on XOR constraints in CDCL SAT solvers, and extend the recently proposed re-entrant incremental MaxSAT solver application program interface to allow for incremental addition of XOR constraints. Finally, we show that IGMaxHS is capable of decoding quantum color codes through simulation with the Munich Quantum Toolkit.
Artificial Intelligence
What problem does this paper attempt to address?
### What problems does this paper attempt to solve? This paper aims to solve the problems of error - correction coding in quantum computing (especially Quantum Color Codes, QCC). Specifically, it proposes a new incremental MaxSAT solver named IGMaxHS to meet the following two key requirements: 1. **Incremental update ability**: It can update problem instances step by step, thus supporting dynamically changing constraints. 2. **Support for XOR (Exclusive - OR) constraints**: It can handle logical formulas containing XOR clauses, which is crucial for quantum error - correction algorithms. These problems have not been fully addressed in existing dedicated MaxSAT solvers. Although SMT solvers such as Z3 can provide these functions, they are usually not as efficient as dedicated MaxSAT solvers. Therefore, the authors of the paper developed IGMaxHS to fill this gap and ensure its accuracy and efficiency in dealing with complex constraint optimization problems. #### Main contributions - **Combining the advantages of existing solvers**: IGMaxHS is based on iMaxHS and GaussMaxHS, inheriting and improving their functions, especially in handling XOR constraints. - **Removing limitations**: Compared with GaussMaxHS, IGMaxHS relaxes the limitation on the length of XOR constraints and ensures that it can still be correctly processed when encountering XOR constraints shorter than three literals. - **Fuzz - testing verification**: Through large - scale fuzz - testing (using the xwcnfuzz tool), the stability and accuracy of IGMaxHS in handling a large number of randomly generated instances have been verified. - **Application examples**: It has demonstrated the ability of IGMaxHS to successfully decode Quantum Color Codes in simulations. Although it is currently slow, its feasibility has been proven. ### Formula representation The main formulas involved in the paper include: - **XOR clauses**: For example, \(a \oplus b \oplus c\), where \(\oplus\) represents the XOR operation. - **CNF conversion**: For an XOR clause \(a \oplus b\) of length 2, it can be converted into an equivalent CNF clause: - When the right - hand side (RHS) is true: \((a \lor b)\land(\neg a \lor \neg b)\) - When the RHS is false: \((a \lor \neg b)\land(\neg a \lor b)\) Through these improvements and verifications, IGMaxHS can provide more effective solutions in fields such as error - correction in quantum computing.