Weighted Context-Free-Language Ordered Binary Decision Diagrams
Meghana Sistla, Swarat Chaudhuri, Thomas Reps
TL;DR
The paper addresses the challenge of compactly representing high-arity, semi-field-valued functions in quantum-simulation contexts by introducing Weighted CFLOBDDs (WCFLOBDDs), which fuse the weighted edge framework of WBDDs with the procedure-call, hierarchical structure of CFLOBDDs. The core idea is a level-based hierarchy that halves variables at each level, with level-0 transitions carrying weights and a CFL-based matched-path constraint ensuring a CFL-language interpretation. The authors prove canonicity via structural invariants and a formal Canonicity Theorem, and they provide algorithms for common operations (e.g., matrix and vector operations) within this framework. Empirical results on synthetic and quantum-circuit benchmarks show that WCFLOBDDs often outperform both WBDDs and CFLOBDDs in terms of problem size that can be handled within a fixed time, supporting the claim that WCFLOBDDs offer a practical best-of-both-worlds approach for certain quantum-simulation tasks, albeit with nuanced runtime behavior.
Abstract
This paper presents a new data structure, called \emph{Weighted Context-Free-Language Ordered BDDs} (WCFLOBDDs), which are a hierarchically structured decision diagram, akin to Weighted BDDs (WBDDs) enhanced with a procedure-call mechanism. For some functions, WCFLOBDDs are exponentially more succinct than WBDDs. They are potentially beneficial for representing functions of type $\mathbb{B}^n \rightarrow D$, when a function's image $V \subseteq D$ has many different values. We apply WCFLOBDDs in quantum-circuit simulation, and find that they perform better than WBDDs on certain benchmarks. With a 15-minute timeout, the number of qubits that can be handled by WCFLOBDDs is 1-64$\times$ that of WBDDs (and 1-128$\times$ that of CFLOBDDs, which are an unweighted version of WCFLOBDDs). These results support the conclusion that for this application -- from the standpoint of problem size, measured as the number of qubits -- WCFLOBDDs provide the best of both worlds: performance roughly matches whichever of WBDDs and CFLOBDDs is better. (From the standpoint of running time, the results are more nuanced.)
