[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 end-to-end quantum algorithm design, including circuit extraction, simulation with up to 30 qubits, and full simulation of Shor’s algorithm for a 14-bit number (8193 = 3 × 2731), representing the largest factored number in a quantum simulator at the time.
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 provide a high-level, extensible software architecture for scalable quantum algorithm development.
- To enable simulation and optimization of quantum circuits independent of specific quantum hardware.
- To support end-to-end workflow from algorithm authoring to circuit export and hardware deployment.
- To facilitate the study of quantum noise, error correction, and circuit decomposition through integrated tools.
- To enable efficient simulation of large-scale quantum algorithms, such as Shor’s algorithm, on classical hardware.
Proposed method
- Embeds a domain-specific language (DSL) for quantum programming within the F# functional language, leveraging its type system and metaprogramming features.
- Provides a modular software architecture with isolated runtime, enabling abstraction from underlying hardware.
- Supports two simulation environments with trade-offs between qubit count and operation class, enabling scalable simulation.
- Generates and exposes a circuit data structure for optimization, rendering, and translation to external tools or hardware.
- Employs gate growing and optimized linear algebra to reduce gate count and improve simulation performance.
- Offers multiple back-ends and simulators, allowing deployment and testing across classical and quantum environments.
Experimental results
Research questions
- RQ1How can a high-level, domain-specific language be embedded in a general-purpose functional language to simplify quantum algorithm development?
- RQ2What simulation techniques enable efficient execution of large-scale quantum circuits on classical hardware?
- RQ3How can quantum circuits be abstracted and optimized independently of target hardware?
- RQ4What architectural components are necessary to support end-to-end quantum algorithm development, from design to deployment?
- RQ5How can quantum error correction, noise modeling, and classical control be integrated into a unified software stack?
Key findings
- LIQUi|⟩ successfully simulated Shor’s algorithm for a 14-bit number (8193 = 3 × 2731), requiring 31 qubits and 7 million gates, representing the largest number factored in a quantum simulator at the time.
- The simulation of a 13-bit instance was reduced from 3 years to 4 days through optimization of the math package and memory usage.
- Gate growing reduced the number of gates from half a million per round to 18,000, significantly improving simulation efficiency.
- The system supports simulation of up to around 30 qubits using only 32 GB of RAM, enabling large-scale quantum circuit exploration.
- The platform enabled full end-to-end simulation of Shor’s algorithm, including quantum operations and classical post-processing, in under a minute on a single desktop.
- LIQUi|⟩ demonstrated the feasibility of simulating complex, large-scale quantum algorithms with extensive optimization, paving the way for future hardware-aware compilation and design.
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.