Compute large circuits for NMR spectroscopy simulation using Fire Opal
Simulate quantum Hamiltonian of liquid-state 1D NMR spectra
Nuclear magnetic resonance (NMR) spectroscopy is a major analytical tool used to determine the structure of molecules, with broad applications in pharmaceutical research, material sciences, and biological studies. The quantum simulation of NMR spectra represents a promising use case for demonstrating quantum utility, as there is a direct correspondence between the quantum dynamics of nuclear spin systems and their simulation on quantum computers.
This application note based on Burov et al. (2025) demonstrates how Fire Opal's error suppression and mitigation pipeline enables the execution of deep quantum circuits for NMR spectroscopy simulations, achieving:
- Up to
improvement in mean square error (MSE) compared to default hardware output - Successful simulation of spin systems with up to 34 spins
- Circuit depth reduction of
through optimized transpilation - Cross-platform execution on IBM Quantum and IonQ quantum hardware
1. Introduction
1.1 NMR Hamiltonian
NMR spectroscopy provides detailed information about molecular structure through the interaction of nuclear spins with magnetic fields. The numerical simulation of NMR experiments is computationally challenging on classical computers because the required resources grow exponentially with the size of the spin system. Quantum computers offer a natural approach to this problem: each nuclear spin maps directly to a qubit, and the Heisenberg Hamiltonian governing NMR dynamics is expressed in terms of Pauli operators, the same building blocks as quantum circuits. However, the depth of quantum circuits required for accurate Hamiltonian simulation makes these computations highly susceptible to noise.
High-field liquid NMR is nuclear magnetic resonance spectroscopy of samples in solution using a very strong, highly uniform magnetic field, typically produced by a superconducting magnet. For liquid-state NMR with spin
where:
is the chemical-shift-induced offset of spin is the spin-spin coupling constant between spins and are the spin operators, related to Pauli operators by
The full isotropic coupling
1.2 Quantum Simulation
You can simulate the spectrum by sampling the free induction decay (FID), the time-dependent transverse magnetization after an effective excitation. You first prepare the transverse state
1.2.1 The Initial State and the Deviation Density Matrix
In a real NMR experiment, the equilibrium state at high field is almost maximally mixed, with a tiny polarization along
This is the zero-temperature limit of a
The observable you track is the transverse magnetization for observed spin species
Together these form the complex FID signal
1.2.2 Encoding Time Evolution as a Quantum Circuit
The time evolution operator
where the
2. The Computation Pipeline
Figure 1 shows the complete workflow. You start from the spin system matrix of the molecule — an

Figure 1: The complete computation pipeline, from molecular description through quantum circuit execution to 1D NMR spectrum.
3. Spin Systems Under Study
Four molecules were selected from the SPINACH example library specifically because they represent systems where classical simulation is difficult or intractable. All four share a useful property for quantum simulation: each nuclear spin maps exactly to one qubit with no encoding overhead, so the number of qubits required equals the number of spins in the molecule.
The smallest system is anti-3,4-difluoroheptane (DFH), with 16 spins and
The symmetric P–H molecule with two tert-butyl groups contributes two separate simulations at 22 spins, one observing the 20 proton spins and one observing the 2 phosphorous spins. The two phosphorous atoms are directly bonded and strongly coupled to each other (
The B[ACR9]
4. Fire Opal Error Suppression and Mitigation
At the circuit depths required for these simulations, raw hardware output is dominated by decoherence and gate errors rather than the NMR physics you intended to compute. Fire Opal addresses this issue through a five-stage pipeline applied automatically to every circuit.
- Logical transpilation compiles each circuit to the device's native gate set and applies mathematical gate combinations to merge or cancel redundant operations before any hardware-specific step. On IBM hardware this targets the CZ gate; on IonQ Forte Enterprise it targets the Mølmer–Sørensen gate.
- Error-aware hardware mapping assigns logical qubits to physical qubits using real-time calibration data, prioritising qubits with lower error rates and qubit pairs that minimise cross-talk. On a 156-qubit chip like
ibm_aachenthere is substantial variation across the device, so this selection is consequential. - Dynamical decoupling inserts carefully timed single-qubit pulse sequences into idle periods to suppress dephasing (
errors) and ZZ cross-talk between neighboring qubits. These spin-echo sequences add to the one-qubit gate count — which is why the optimized circuits contain more single-qubit gates than the raw compilations — but they actively cancel dephasing noise that would otherwise wash out the FID. - Optimized gate replacement consolidates blocks of adjacent two-qubit gates and resynthesizes them using the minimum number of native entangling gates, followed by a similar pass over single-qubit gate sequences.
- Measurement error mitigation corrects bit-flip and readout errors after execution using a sublinear-scaling confusion matrix approach. Fire Opal partitions the device into small qubit groups, builds a confusion matrix for each, and applies the combined correction to the output distributions.
Figure 2 shows the combined effect on circuit depth across all time points for each spin system.

Figure 2: Distributions of CZ gate depth across all
5. Results
5.1 FID Signal Quality
The
With Fire Opal (red), the FID follows the noiseless dynamics faithfully through the first

Figure 3: Real part of the ibm_aachen. Solid red: ibm_aachen with Fire Opal. Left: full 800-point trace. Right: zoom on the first 240 time points.
5.2 1D NMR Spectra
The FID signals are converted to spectra by zero-padding and applying an FFT, with the frequency axis rescaled to ppm using the spectrometer frequency of the observed nucleus. Figure 4 shows all four results on ibm_aachen with Fire Opal, alongside the SPINACH classical reference computed within the grey region of interest.

Figure 4: 1D NMR spectra for all four spin systems. Column 1: molecular structures. Column 2: full frequency range. Column 3: zoom on the region of interest. Red: quantum simulation on ibm_aachen with Fire Opal. Blue: SPINACH classical reference.
The DFH
The symm_P
The phosphorous cluster at
5.3 Cross-Platform Comparison: IBM vs. IonQ
The symm_P ibm_aachen and IonQ Forte Enterprise to understand how the different hardware modalities handle the same simulation under Fire Opal. The two platforms represent opposite engineering tradeoffs: IBM's superconducting qubits operate at nanosecond gate speeds on a fixed heavy-hex lattice, while IonQ's trapped-ion qubits have microsecond gate speeds but all-to-all connectivity and coherence times orders of magnitude longer.

Figure 5: symm_P ibm_aachen with Fire Opal (dotted red) and IonQ Forte Enterprise (solid green) vs. SPINACH classical reference (solid blue). Left: full ppm range. Right: zoom on the region of interest. Figure from Burov et al. (2025).
Both platforms reproduce the correct peak positions in the region of interest. The qualitative difference is the circuit depth, on ibm_aachen, Fire Opal reduces the two-qubit depth to
| Parameter | IBM ibm_aachen | IonQ Forte Enterprise |
|---|---|---|
| Technology | Superconducting (Heron chip) | Trapped-ion ( |
| Connectivity | Heavy-hex lattice | All-to-all |
| ~ | ||
| Two-qubit gate time | ||
| Two-qubit gate error rate | ||
| Optimized 2Q depth (symm_P) | ||
| Total QPU time (symm_P) |
The practical cost of IonQ's longer coherence and lower depth is throughput. IBM's gates are roughly
5.4 Algorithmic Error vs. Hardware Noise
You can separate the total error into two independent contributions: hardware noise (decoherence, gate errors, readout) and algorithmic error (Trotterization). Fire Opal handles the first; the second is intrinsic to the simulation method. Comparing the Fire Opal output for symm_H against both references simultaneously tells you which term dominates.
| Comparison | MSE | Cosine similarity |
|---|---|---|
| Fire Opal hardware vs. noiseless circuit simulation | 0.9011 | |
| Fire Opal hardware vs. SPINACH physical reference | 0.3596 |
The hardware output with Fire Opal is nearly indistinguishable from what a perfect, noiseless version of the same Trotterized circuits would produce. The gap to the SPINACH reference is
6. Discussion and Conclusion
In this work Fire Opal has suppressed hardware noise below the level of the Trotterization error, shifting the bottleneck from the device to the algorithm. A single product formula step introduces phase errors of order
Several algorithmic paths can address this bottleneck without waiting for better hardware. Spin echo techniques developed specifically for NMR Hamiltonians exploit the structure of the Heisenberg coupling terms to achieve dramatically shorter circuits, potentially fitting multiple effective Trotter steps within the same gate budget used here for one. Higher-order product formulas reduce error per step at moderate depth cost and are straightforward to implement within the existing framework. Qubitization eliminates Trotter error entirely in principle, with optimal
