Skip to main contentIBM Quantum Documentation Preview
This is a preview build of IBM Quantum® documentation. Refer to quantum.cloud.ibm.com/docs for the official documentation.

Dynamics Simulator by Q-CTRL Fire Opal

See the API reference

Note

IBM Quantum® Functions are a beta feature available only to IBM Quantum Premium Plan, Flex Plan, and On-Prem (through the IBM Quantum Platform API) Plan users. Beta features are subject to change.


Overview

The Q-CTRL Dynamics Simulator is an application quantum function for simulating the time evolution of supported quantum many-body models on IBM Quantum hardware. Instead of constructing quantum circuits yourself, you specify the physical model, the initial state, the time-evolution parameters, and the observables to measure.

The function constructs and executes the required dynamic circuits and applies Fire Opal's hardware-aware optimization and error suppression workflow. The result is a time trace of expectation values for the observables you requested. Because the function applies error suppression automatically, you can run circuits at record depths and still see meaningful signals. The Dynamics Simulator delivers solution accuracy that matches the existing state-of-the-art classical tools and gives a demonstrable advantage in speed.

Real-world testing achieved agreement within 1% root mean square error (RMSE) when compared against the highest-resolution classical tensor-network simulations. Independent tests from the research community have validated that the quantum computer remains accurate even beyond Q-CTRL's initial demonstrations.

Two plots of classical tensor-network simulations at bond dimensions χ from 64 to 4096. The left plot shows the RMSE against time t, which stays near 0.01 until it rises sharply, later for larger bond dimensions. The right plot shows the simulation time in minutes against time t on a logarithmic scale, which increases with bond dimension.
Agreement between quantum and classical simulations as the “resolution” of the classical simulation increases. As the resolution increases, both the agreement with the quantum computer and the classical-simulation runtime increase. Quantum computer runtimes are faster by up to 3000 times.

Benchmarks

The number of sites determines how many qubits are needed, while the number of Trotter steps controls the depth of the time-evolution circuits. Each lattice site uses two qubits to represent the spin-up and spin-down occupations.

This workflow has been demonstrated for chains of 60 sites (120 qubits) with 30 Trotter steps, and for chains of 31 sites (62 qubits) with 90 Trotter steps. The table below shows the circuit resources and QPU execution times from the reported experiments, performed on IBM® Heron r3 (ibm_boston) device with 20,000 shots per circuit.

System size
Trotter steps
Two-qubit depth
Two-qubit gate count
QPU time
QPU time with REM + DR
10 sites (20 qubits)301521,4572m 46s4m 25s
10 sites (20 qubits)603022,8975m 36s8m 42s
10 sites (20 qubits)904524,3378m 46s13m 26s
31 sites (62 qubits)301524,6492m 46s4m 25s
31 sites (62 qubits)603029,2395m 36s8m 42s
31 sites (62 qubits)9045213,8298m 46s13m 26s
60 sites (120 qubits)301529,0572m 46s4m 25s

For a fixed number of Trotter steps, the reported circuit depth and QPU time remain the same across the tested system sizes, while the two-qubit gate count increases. Increasing the number of steps produces deeper circuits and requires more QPU time.

Here, QPU time is the cumulative hardware execution time for the main simulation circuits. The last column also includes the QPU time for noise characterization used in readout error mitigation (REM) and decay recovery (DR).


Description

Quantum dynamics describes how a quantum system changes over time. Studying this evolution helps you understand how particles move, how correlations develop, and how a system responds to a change in its state or Hamiltonian.

The Fermi-Hubbard model describes fermions moving between lattice sites and interacting when they occupy the same site. The competition between hopping and interactions makes it a useful model for studying strongly correlated electrons. Its time evolution can reveal how spin and charge propagate, and how an initially ordered system relaxes.

Model

The Dynamics Simulator supports a one-dimensional Fermi-Hubbard chain with open boundaries. For a chain of LL sites, the Hamiltonian is defined as follows:

H=−∑i=0L−2∑σ∈{↑,↓}th,i(ciσ†ci+1,σ+ci+1,σ†ciσ)+∑i=0L−1Uini↑ni↓−∑i=0L−1∑σ∈{↑,↓}μiniσ.H = -\sum_{i=0}^{L-2}\sum_{\sigma\in\{\uparrow,\downarrow\}} t_{h,i} \left( c^\dagger_{i\sigma}c_{i+1,\sigma} + c^\dagger_{i+1,\sigma}c_{i\sigma} \right) +\sum_{i=0}^{L-1}U_i n_{i\uparrow}n_{i\downarrow} -\sum_{i=0}^{L-1}\sum_{\sigma\in\{\uparrow,\downarrow\}} \mu_i n_{i\sigma}.

Here, ciσ†c^\dagger_{i\sigma} and ciσc_{i\sigma} create and annihilate a fermion with spin σ\sigma at site ii. The number operator niσ=ciσ†ciσn_{i\sigma}=c^\dagger_{i\sigma}c_{i\sigma} measures the occupation of that spin orbital.

The model inputs specify the following coefficients:

  • hopping_amplitude: th,it_{h,i}, which controls hopping between neighboring sites ii and i+1i+1.
  • on_site_interaction: UiU_i, the interaction between spin-up and spin-down fermions occupying the same site.
  • chemical_potential: μi\mu_i, the local chemical potential, which enters the Hamiltonian with a minus sign.

Supply a scalar to use the same coefficient throughout the chain, or a list to specify coefficients for individual bonds or sites.

In units where ℏ=1\hbar=1, the initial state evolves as follows:

∣ψ(t)⟩=e−iHt∣ψ(0)⟩.|\psi(t)\rangle=e^{-iHt}|\psi(0)\rangle.

The function estimates the expectation values of the observables you specify at successive simulation times.

Workflow

The function's workflow consists of the following steps:

  1. Algorithmic synthesis: The function uses the Hamiltonian and simulation time settings to construct an optimized Trotter-Suzuki sequence, which reduces circuit depth while accounting for simulation accuracy.
  2. Hardware-aware mapping: The function maps and routes the circuits by using the qubit connectivity and error characteristics of the selected IBM Quantum backend.
  3. Physical-layer error suppression: Fire Opal incorporates dynamical decoupling and pulse-level corrections to suppress noise from the environment and crosstalk during hardware execution.

The function manages these stages automatically and returns the expectation values of the requested observables over time.

You define the physical problem and simulation settings through the function inputs. The current interface supports Trotter time evolution, where time_step sets the duration of each step and step_count sets the number of steps.

To access results from previous runs, see how to retrieve previous quantum function jobs.

For additional details, see the Fire Opal dynamics simulator overview and the simulate_dynamics API reference.


Get support

For questions about the Dynamics Simulator or Fire Opal behavior, see the Q-CTRL documentation or contact Q-CTRL.

For quantum function authentication, job management, or IBM Quantum Platform access, see the quantum functions documentation.


Next steps

Recommendations