QuantumSavory: Write Symbolically, Run on Any Backend -- A Unified Simulation Toolkit for Quantum Computing and Networking
Hana KimLee, Leonardo Bacciottini, Abhishek Bhatt, Andrew Kille, Stefan Krastanov
TL;DR
The paper tackles the need for end-to-end, cross-layer modeling in quantum computing and networking by introducing QuantumSavory, a Julia-based toolkit with a symbolic frontend and interchangeable numerical backends. It enables backend-agnostic descriptions of quantum states, operations, and protocols, orchestrated by a discrete-event LOCC engine and coordinated via a tagging/messaging system, complemented by modular Zoos of reusable components. Through full-stack examples and a cross-tool comparison, the authors demonstrate how QSavory supports scalable, reusable codesign across heterogeneous quantum hardware and network dynamics. The work promises practical impact by enabling digital-twin style simulations, optimization with autodifferentiation, and rapid experimentation across backends and protocols, with future plans for tensor-network backends, surrogates, and richer physical models.
Abstract
Progress in quantum computing and networking depends on codesign across abstraction layers: device-level noise and heterogeneous hardware, algorithmic structure, and distributed classical control. We present QuantumSavory, an open-source toolkit built to make such end-to-end studies practical by cleanly separating a symbolic computer-algebra frontend from interchangeable numerical simulation backends. States, operations, measurements, and protocol logic are expressed in a backend-agnostic symbolic language; the same model can be executed across multiple backends (e.g., stabilizer, wavefunction, phase-space), enabling rapid exploration of accuracy-performance tradeoffs without rewriting the model. Furthermore, new custom backends can be added via a small, well-defined interface that immediately reuses existing models and protocols. QuantumSavory also addresses the classical-quantum interaction inherent to LOCC protocols via discrete-event execution and a tag/query system for coordination. Tags attach structured classical metadata to quantum registers and message buffers, and queries retrieve, filter, or wait on matching metadata by wildcards or arbitrary predicates. This yields a data-driven control plane where protocol components coordinate by publishing and consuming semantic facts (e.g., resource availability, pairing relationships, protocol outcomes) rather than by maintaining rigid object graphs or bespoke message plumbing, improving composability and reuse as models grow. Our toolkit is also not limited to qubits and Bell pairs; rather, any networking dynamics of any quantum system under any type of multipartite entanglement can be tackled. Lastly, QuantumSavory ships reusable libraries of standard states, circuits, and protocol building blocks with consistent interfaces, enabling full-stack examples to be assembled, modified, and compared with minimal glue code.
