skip to main content

Attention:

The NSF Public Access Repository (PAR) system and access will be unavailable from 11:00 PM ET on Friday, December 13 until 2:00 AM ET on Saturday, December 14 due to maintenance. We apologize for the inconvenience.


This content will become publicly available on January 5, 2025

Title: SimuQ: A Framework for Programming Quantum Hamiltonian Simulation with Analog Compilation

Quantum Hamiltonian simulation, which simulates the evolution of quantum systems and probes quantum phenomena, is one of the most promising applications of quantum computing. Recent experimental results suggest that Hamiltonian-oriented analog quantum simulation would be advantageous over circuit-oriented digital quantum simulation in the Noisy Intermediate-Scale Quantum (NISQ) machine era. However, programming analog quantum simulators is much more challenging due to the lack of a unified interface between hardware and software. In this paper, we design and implement SimuQ, the first framework for quantum Hamiltonian simulation that supports Hamiltonian programming and pulse-level compilation to heterogeneous analog quantum simulators. Specifically, in SimuQ, front-end users specify the target quantum system with Hamiltonian Modeling Language, and the Hamiltonian-level programmability of analog quantum simulators is specified through a new abstraction called the abstract analog instruction set (AAIS) and programmed in AAIS Specification Language by hardware providers. Through a solver-based compilation, SimuQ generates executable pulse schedules for real devices to simulate the evolution of desired quantum systems, which is demonstrated on superconducting (IBM), neutral-atom (QuEra), and trapped-ion (IonQ) quantum devices. Moreover, we demonstrate the advantages of exposing the Hamiltonian-level programmability of devices with native operations or interaction-based gates and establish a small benchmark of quantum simulation to evaluate SimuQ's compiler with the above analog quantum simulators.

 
more » « less
Award ID(s):
1942837
PAR ID:
10514838
Author(s) / Creator(s):
; ; ;
Publisher / Repository:
ACM
Date Published:
Journal Name:
Proceedings of the ACM on Programming Languages
Volume:
8
Issue:
POPL
ISSN:
2475-1421
Page Range / eLocation ID:
2425 to 2455
Format(s):
Medium: X
Sponsoring Org:
National Science Foundation
More Like this
  1. Over the past few years, several quantum software stacks (QSS) have been developed in response to rapid hardware advances in quantum computing. A QSS includes a quantum programming language, an optimizing compiler that translates a quantum algorithm written in a high-level language into quantum gate instructions, a quantum simulator that emulates these instructions on a classical device, and a software controller that sends analog signals to a very expensive quantum hardware based on quantum circuits. In comparison to traditional compilers and architecture simulators, QSSes are difficult to tests due to the probabilistic nature of results, the lack of clear hardware specifications, and quantum programming complexity. This work devises a novel differential testing approach for QSSes, named QDIFF with three major innovations: (1) We generate input programs to be tested via semantics-preserving, source to source transformation to explore program variants. (2) We speed up differential testing by filtering out quantum circuits that are not worthwhile to execute on quantum hardware by analyzing static characteristics such as a circuit depth, 2-gate operations, gate error rates, and T1 relaxation time. (3) We design an extensible equivalence checking mechanism via distribution comparison functions such as Kolmogorov-Smirnov test and cross entropy. We evaluate QDiff with three widely-used open source QSSes: Qiskit from IBM, Cirq from Google, and Pyquil from Rigetti. By running QDiff on both real hardware and quantum simulators, we found several critical bugs revealing potential instabilities in these platforms. QDiff's source transformation is effective in producing semantically equivalent yet not-identical circuits (i.e., 34% of trials), and its filtering mechanism can speed up differential testing by 66%. 
    more » « less
  2. Correlated quantum many-body phenomena in lattice models have been identified as a set of physically interesting problems that cannot be solved classically. Analog quantum simulators, in photonics and microwave superconducting circuits, have emerged as near-term platforms to address these problems. An important ingredient in practical quantum simulation experiments is the tomography of the implemented Hamiltonians—while this can easily be performed if we have individual measurement access to each qubit in the simulator, this could be challenging to implement in many hardware platforms. In this paper, we present a scheme for tomography of quantum simulators which can be described by a Bose-Hubbard Hamiltonian while having measurement access to only some sites on the boundary of the lattice. We present an algorithm that uses the experimentally routine transmission and two-photon correlation functions, measured at the boundary, to extract the Hamiltonian parameters at the standard quantum limit. Furthermore, by building on quantum enhanced spectroscopy protocols that, we show that with the additional ability to switch on and off the on-site repulsion in the simulator, we can sense the Hamiltonian parameters beyond the standard quantum limit.

    <supplementary-material><permissions><copyright-statement>Published by the American Physical Society</copyright-statement><copyright-year>2024</copyright-year></permissions></supplementary-material></sec> </div> <a href='#' class='show open-abstract' style='margin-left:10px;'>more »</a> <a href='#' class='hide close-abstract' style='margin-left:10px;'>« less</a> </div><div class="clearfix"></div> </div> </li> <li> <div class="article item document" itemscope itemtype="http://schema.org/TechArticle"> <div class="item-info"> <div class="title"> <a href="https://par.nsf.gov/biblio/10404280-quantaichi-compiler-quantized-simulations" itemprop="url"> <span class='span-link' itemprop="name">QuanTaichi: a compiler for quantized simulations</span> </a> </div> <div> <strong> <a class="misc external-link" href="https://doi.org/10.1145/3450626.3459671" target="_blank" title="Link to document DOI">https://doi.org/10.1145/3450626.3459671  <span class="fas fa-external-link-alt"></span></a> </strong> </div> <div class="metadata"> <span class="authors"> <span class="author" itemprop="author">Hu, Yuanming</span> <span class="sep">; </span><span class="author" itemprop="author">Liu, Jiafeng</span> <span class="sep">; </span><span class="author" itemprop="author">Yang, Xuanda</span> <span class="sep">; </span><span class="author" itemprop="author">Xu, Mingkuan</span> <span class="sep">; </span><span class="author" itemprop="author">Kuang, Ye</span> <span class="sep">; </span><span class="author" itemprop="author">Xu, Weiwei</span> <span class="sep">; </span><span class="author" itemprop="author">Dai, Qiang</span> <span class="sep">; </span><span class="author" itemprop="author">Freeman, William T.</span> <span class="sep">; </span><span class="author" itemprop="author">Durand, Frédo</span> </span> <span class="year">( <time itemprop="datePublished" datetime="2021-08-31">August 2021</time> , ACM Transactions on Graphics) </span> </div> <div style="cursor: pointer;-webkit-line-clamp: 5;" class="abstract" itemprop="description"> High-resolution simulations can deliver great visual quality, but they are often limited by available memory, especially on GPUs. We present a compiler for physical simulation that can achieve both high performance and significantly reduced memory costs, by enabling flexible and aggressive quantization. Low-precision ("quantized") numerical data types are used and packed to represent simulation states, leading to reduced memory space and bandwidth consumption. Quantized simulation allows higher resolution simulation with less memory, which is especially attractive on GPUs. Implementing a quantized simulator that has high performance and packs the data tightly for aggressive storage reduction would be extremely labor-intensive and error-prone using a traditional programming language. To make the creation of quantized simulation practical, we have developed a new set of language abstractions and a compilation system. A suite of tailored domain-specific optimizations ensure quantized simulators often run as fast as the full-precision simulators, despite the overhead of encoding-decoding the packed quantized data types. Our programming language and compiler, based on Taichi , allow developers to effortlessly switch between different full-precision and quantized simulators, to explore the full design space of quantization schemes, and ultimately to achieve a good balance between space and precision. The creation of quantized simulation with our system has large benefits in terms of memory consumption and performance, on a variety of hardware, from mobile devices to workstations with high-end GPUs. We can simulate with levels of resolution that were previously only achievable on systems with much more memory, such as multiple GPUs. For example, on a single GPU, we can simulate a Game of Life with 20 billion cells (8× compression per pixel), an Eulerian fluid system with 421 million active voxels (1.6× compression per voxel), and a hybrid Eulerian-Lagrangian elastic object simulation with 235 million particles (1.7× compression per particle). At the same time, quantized simulations create physically plausible results. Our quantization techniques are complementary to existing acceleration approaches of physical simulation: they can be used in combination with these existing approaches, such as sparse data structures, for even higher scalability and performance. </div> <a href='#' class='show open-abstract' style='margin-left:10px;'>more »</a> <a href='#' class='hide close-abstract' style='margin-left:10px;'>« less</a> </div><div class="clearfix"></div> </div> </li> <li> <div class="article item document" itemscope itemtype="http://schema.org/TechArticle"> <div class="item-info"> <div class="title"> <a href="https://par.nsf.gov/biblio/10479903-practical-verification-protocols-analog-quantum-simulators" itemprop="url"> <span class='span-link' itemprop="name">Practical verification protocols for analog quantum simulators</span> </a> </div> <div> <strong> <a class="misc external-link" href="https://doi.org/10.1038/s41534-021-00380-8" target="_blank" title="Link to document DOI">https://doi.org/10.1038/s41534-021-00380-8  <span class="fas fa-external-link-alt"></span></a> </strong> </div> <div class="metadata"> <span class="authors"> <span class="author" itemprop="author">Shaffer, Ryan</span> <span class="sep">; </span><span class="author" itemprop="author">Megidish, Eli</span> <span class="sep">; </span><span class="author" itemprop="author">Broz, Joseph</span> <span class="sep">; </span><span class="author" itemprop="author">Chen, Wei-Ting</span> <span class="sep">; </span><span class="author" itemprop="author">Häffner, Hartmut</span> </span> <span class="year">( <time itemprop="datePublished" datetime="2021-12-01">December 2021</time> , npj Quantum Information) </span> </div> <div style="cursor: pointer;-webkit-line-clamp: 5;" class="abstract" itemprop="description"> <title>Abstract

    Analog quantum simulation is expected to be a significant application of near-term quantum devices. Verification of these devices without comparison to known simulation results will be an important task as the system size grows beyond the regime that can be simulated classically. We introduce a set of experimentally-motivated verification protocols for analog quantum simulators, discussing their sensitivity to a variety of error sources and their scalability to larger system sizes. We demonstrate these protocols experimentally using a two-qubit trapped-ion analog quantum simulator and numerically using models of up to five qubits.

     
    more » « less
  3. Abstract

    Integrated photonics has been a promising platform for analog quantum simulation of condensed matter phenomena in strongly correlated systems. To that end, we explore the implementation of all-photonic quantum simulators in coupled cavity arrays with integrated ensembles of spectrally disordered emitters. Our model is reflective of color center ensembles integrated into photonic crystal cavity arrays. Using the Quantum Master equation and the Effective Hamiltonian approaches, we study energy band formation and wavefunction properties in the open quantum Tavis–Cummings–Hubbard framework. We find conditions for polariton creation and (de)localization under experimentally relevant values of disorder in emitter frequencies, cavity resonance frequencies, and emitter-cavity coupling rates. To quantify these properties, we introduce two metrics, the polaritonic and nodal participation ratios, that characterize the light-matter hybridization and the node delocalization of the wavefunction, respectively. These new metrics combined with the Effective Hamiltonian approach prove to be a powerful toolbox for cavity quantum electrodynamical engineering of solid-state systems.

     
    more » « less