[Paper Review] LIQUi|>: A Software Design Architecture and Domain-Specific Language for Quantum Computing.
LIQUi|⟩ is a modular, domain-specific quantum programming language embedded in F#, designed to enable high-level development, simulation, and optimization of quantum algorithms across diverse hardware back-ends. It supports full simulation of Shor’s algorithm up to 14-qubit instances (e.g., factoring 8193), achieving 31-qubit simulations with 7 million gates using only 32 GB RAM, demonstrating scalable quantum circuit simulation through advanced optimization techniques like gate growing and memory-optimized linear algebra.
Languages, compilers, and computer-aided design tools will be essential for scalable quantum computing, which promises an exponential leap in our ability to execute complex tasks. LIQUi|> is a modular software architecture designed to control quantum hardware. It enables easy programming, compilation, and simulation of quantum algorithms and circuits, and is independent of a specific quantum architecture. LIQUi|> contains an embedded, domain-specific language designed for programming quantum algorithms, with F# as the host language. It also allows the extraction of a circuit data structure that can be used for optimization, rendering, or translation. The circuit can also be exported to external hardware and software environments. Two different simulation environments are available to the user which allow a trade-off between number of qubits and class of operations. LIQUi|> has been implemented on a wide range of runtimes as back-ends with a single user front-end. We describe the significant components of the design architecture and how to express any given quantum algorithm.
Motivation & Objective
- To design a modular, extensible software architecture for scalable quantum algorithm development.
- To provide a high-level, domain-specific language embedded in F# for intuitive quantum circuit programming.
- To enable efficient simulation, optimization, and hardware export of quantum circuits across diverse back-ends.
- To support end-to-end workflow from algorithm authoring to verification, including noise modeling and error correction.
- To facilitate mapping of quantum algorithms with classical control to specific quantum hardware architectures.
Proposed method
- Embeds a quantum domain-specific language (DSL) within F# to provide type-safe, high-level abstractions for quantum operations.
- Uses a modular software architecture to isolate quantum operations, circuit manipulation, simulation, and backend compilation.
- Employs two simulation back-ends: one for small circuits with full state vector simulation, and another for larger circuits using amplitude sampling.
- Applies gate growing to reduce gate count by merging adjacent controlled operations, significantly improving simulation performance.
- Supports circuit export for external tools and hardware compilation, enabling interoperability with quantum simulators and real devices.
- Integrates classical control logic and supports circuit adjoint operations, enabling modular design of complex algorithms.
Experimental results
Research questions
- RQ1How can a high-level, type-safe quantum programming language be embedded in a general-purpose functional language like F#?
- RQ2What simulation techniques enable efficient execution of large-scale quantum circuits on classical hardware?
- RQ3How can quantum circuit optimization, such as gate growing, be systematically applied to reduce resource overhead?
- RQ4What architectural patterns enable extensibility and hardware independence in quantum software stacks?
- RQ5How can quantum algorithms with classical control be composed, verified, and mapped to specific quantum hardware constraints?
Key findings
- LIQUi|⟩ successfully simulated Shor’s algorithm for a 14-bit number (8193), requiring 31 qubits and 7 million gates, using only 32 GB of RAM.
- The simulation of the 14-qubit instance took 43,384 minutes (30.1 days), representing the largest fully factored number in a quantum simulator at the time.
- Gate growing reduced the number of gates from half a million per round to 18,000, drastically improving simulation efficiency.
- Optimized memory usage and tighter inner loops in the math package reduced simulation time from 3 years to 4 days for a 13-bit instance.
- The system supports end-to-end simulation, optimization, and export of quantum circuits, enabling verification and deployment across multiple hardware and software platforms.
- LIQUi|⟩ enables scalable simulation of quantum circuits up to around 30 qubits, demonstrating feasibility for large-scale algorithm development.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.