AI-QEM by LTM
See the API reference.
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.
The current release of AI-QEM has the following limitations:
- Mitigation is limited to the Heron processor family. LTM plans to support additional backends in future versions.
- Error mitigation is applied selectively. Mitigation is performed only when the absolute expectation value satisfies , so that mitigation is applied only where it is expected to provide meaningful benefit.
These limitations reflect the current scope of AI-QEM. Future releases might relax them as LTM adds support for additional workflows, backends, and features.
Overview
Quantum error mitigation (QEM) encompasses algorithmic protocols, such as zero-noise extrapolation (ZNE) [2] and probabilistic error cancellation (PEC) [3], that are designed to suppress noise-induced bias in expectation values on noisy intermediate-scale quantum (NISQ) hardware, without the large qubit overhead of full fault tolerance. These methods are critical for extracting reliable physical simulations and benchmark results from current processors. Although many QEM methods have been developed in recent years, almost all of them share a fundamental trade-off: they rely on significantly more QPU time to achieve accuracy. Their defining limitation is an exponential sampling overhead, because reconstructing an unbiased signal from noisy circuits greatly increases the statistical variance of the estimator. Consequently, overcoming higher noise levels requires orders of magnitude more measurement shots, which leads to significantly longer QPU runtimes and substantial hardware bottlenecks [4, 5, 6].
With AI-QEM, you can run quantum circuits on noisy QPUs and obtain improved expectation values compared to other AI-based error mitigation techniques, without any additional QPU runtime overhead. The approach uses a deep neural network with a graph convolutional network (GCN)-Transformer architecture. The network is trained on features that include circuit structure, backend topology, Pauli observables, and qubit calibrations, and it predicts a correction factor, denoted by . Dividing the noisy expectation value by produces an improved expectation value. Experiments show that AI-QEM produces better results than other AI-based mitigation methods, particularly for circuits with large depth (gate layers) and width (number of qubits), which makes it well suited for utility-scale quantum experiments. The table in the Benchmarks section shows that the GCN-Transformer-based model surpasses random forest (RF)-based models in the 80- to 150-qubit range, with a mean absolute error (MAE) of 0.343. The MAE is the average, over a large number of circuit and observable configurations, of the absolute difference between the ideal expectation value and the expectation value after the model mitigates the noisy hardware result. Furthermore, because the model is circuit-agnostic, you can apply it to a wide range of quantum circuits and applications without circuit-specific customization.
For a full description of the underlying components and a utility-scale demonstration, refer to the AI-QEM paper [1].
Description
Use the LTM AI-QEM function to estimate the expectation values of observables for a given quantum circuit. To use LTM AI-QEM, provide a quantum circuit, a set of observables to measure, and a QPU. The function uses the same QPU time as the IBM Quantum Estimator primitive, and no additional QPU time.
The usual way to compute the expectation value of an observable is to decompose the observable into a sum of Pauli operators, , and calculate the expectation value of each Pauli operator, , individually. The expectation value of the observable, , is then the same linear combination of the Pauli expectation values: . If a set of Pauli operators commute with each other, the measurements required to compute their expectation values can be done simultaneously. When you run a circuit with the LTM AI-QEM function, the function uses the Estimator primitive to run the circuit on hardware as usual. It follows the same procedure of decomposing the observable into Pauli operators and computing their expectation values individually. Then the GCN-Transformer, a deep learning architecture, predicts a correction factor for each Pauli operator . The function uses this correction factor to correct the noisy expectation value of each Pauli operator: . The mitigated expectation value is therefore .
The workflow for using the LTM AI-QEM function is as follows:
- Define your circuits and observables.
- Run the LTM AI-QEM function by passing a circuit and observable pairs as primitive unified blocs (PUBs).
- Retrieve the results, which contain the expectation value of the observable with respect to the corresponding quantum circuit in each PUB.
Many test examples empirically show that the LTM AI-QEM function improves the estimation of observables. The function has the following features:
- Utility-scale experiments: Test examples show that AI-QEM performs better than other AI-based methods for circuits with large depth and large width. See the Benchmarks section for results.
- Primitive: The function supports the Estimator primitive, so you can use it to compute the expectation value of any observable with respect to any quantum circuit.
- Primitive unified bloc (PUB): The LTM AI-QEM function supports all types of PUBs (that is, all circuit-observable configurations) that the Estimator primitive supports.
The AI-QEM technique begins with dataset construction, in which random quantum circuits are generated with various parameter settings. For each circuit, both the ideal expectation values (obtained through simulation) and the noisy expectation values (obtained from hardware execution) are computed. These results, along with the corresponding quantum circuits and backend information, are stored in a dataset repository. The dataset is then used to train a machine-learning or deep-learning model that can mitigate noise in quantum computations, and the trained model is saved for future use. During inference, the trained model takes as input a quantum circuit, its noisy expectation value computed on hardware, the relevant observables, and backend information. The model then processes these inputs to produce a noise-mitigated expectation value.
Benchmarks
The following table shows the performance of the LTM AI-QEM function for different types of circuits, circuit configurations, and observable configurations.
Circuit | Qubits | Processor | Description | Accuracy | Time (QPU / CPU) |
|---|---|---|---|---|---|
| Mirror circuit (RealAmplitudes) | 30 | Heron r2 | reps = 1, Two-qubit depth = 58, Observable Pauli weight = 1 | 96% | QPU: 14 s CPU: 4 s |
| Mirror circuit (TwoLocal) | 35 | Heron r2 | reps = 1, Two-qubit depth = 68, Observable Pauli weight = 1 | 81% | QPU: 14 s CPU: 4 s |
| Mirror circuit (EfficientSU2) | 40 | Heron r2 | reps = 1, Two-qubit depth = 78, Observable Pauli weight = 1 | 95% | QPU: 14 s CPU: 4 s |
| Clifford circuit | 50 | Heron r2 | Two-qubit depth = 35, Observable Pauli weight = 10 | 95.53% | QPU: 23 s CPU: 30 s |
| Clifford circuit | 50 | Heron r2 | Two-qubit depth = 40, Observable Pauli weight = 12 | 84% | QPU: 22 s CPU: 51 s |
| Clifford circuit | 50 | Heron r2 | Two-qubit depth = 30, Observable Pauli weight = 15 | 94.44% | QPU: 22 s CPU: 54 s |
| Clifford circuit | 100 | Heron r2 | Two-qubit depth = 45, Observable Pauli weight = 5 | 95.06% | QPU: 22 s CPU: 239 s |
| Clifford circuit | 100 | Heron r2 | Two-qubit depth = 35, Observable Pauli weight = 11 | 94.82% | QPU: 22 s CPU: 245 s |
| Ising (chaotic angles) | 28 | Heron r2 | Trotter steps = 5, Two-qubit depth = 84, Observable = Average magnetization | 87.29% | QPU: 23 s CPU: 25 s |
| Ising (chaotic angles) | 36 | Heron r2 | Trotter steps = 6, Two-qubit depth = 228, Observable = Average magnetization | 90.51% | QPU: 23 s CPU: 31 s |
| Ising (chaotic angles) | 96 | Heron r2 | Trotter steps = 8, Two-qubit depth = 496, Observable = Average magnetization | 90.29% | QPU: 23 s CPU: 220 s |
| Ising (near-Clifford angles) | 56 | Heron r2 | Trotter steps = 7, Two-qubit depth = 322, Observable = Average magnetization | 89.51% | QPU: 23 s CPU: 53 s |
| Ising (small angles) | 76 | Heron r2 | Trotter steps = 10, Two-qubit depth = 540, Observable = Average magnetization | 91.36% | QPU: 23 s CPU: 111 s |
Note: CPU time is the post-processing time. The three mirror circuits were submitted together in one run, so the recorded QPU and CPU times are for all three circuits together. Each Clifford circuit run contained nine PUBs with different circuit depths, so the recorded times are for all nine PUBs together. Each Ising circuit run contained 10 PUBs with different numbers of Trotter steps, so the recorded times are for all 10 PUBs together.
For the mirror circuits, the benchmarks use the RealAmplitudes, TwoLocal, and EfficientSU2 ansätze with 30, 35, and 40 qubits, respectively. The observables consist of a single Pauli- operator on a randomly selected qubit, with an ideal expectation value of 1.
For the Clifford circuits, the benchmarks use 50- and 100-qubit circuits with observables initialized as one or more randomly positioned Pauli- operators. Operator evolution increases the Pauli weight of these observables, which provides more complex observables for benchmarking. The observables are constructed to have an ideal expectation value of 1, which is independently verified with stabilizer simulation.
For the Trotterized 2D tilted-field Ising (TFI) Hamiltonian simulations, the benchmarks use three parameter regimes: small angle , near-Clifford , and chaotic . The observable is the average magnetization,
where is the number of qubits in the simulation. Ideal expectation values are computed with sparse Pauli dynamics (SPD), a Pauli propagation method, and are validated against Qiskit statevector simulations for circuits with fewer than 29 qubits.
For all benchmarks, mitigation accuracy is calculated as
where and are the ideal and mitigated expectation values, respectively.
Get support
The AI-QEM support team is here to help. If you encounter any issues, have questions about using the AI-QEM Function, or need help troubleshooting a job, contact the support team.
Support: quantumfunction.support@ltm.com
To help the support team investigate and resolve your issue as quickly as possible, include the following information in your support request:
- Function job ID (for example,
job.job_id) - A detailed description of the issue
- Any relevant error messages, stack traces, or error codes
- Expected behavior and actual behavior (if applicable)
Complete information helps the support team diagnose issues more efficiently and resolve them faster.
The AI-QEM support team also welcomes feedback and feature requests. If you have suggestions for improvements or capabilities that you want to see in future releases, send them to quantumfunction.support@ltm.com.
Next steps
- Run your first workload with the get started guide.
- Review the functions overview.
References
[1] Utility Scale Quantum Error Mitigation using AI