Simulation and modelling· VQE

Compute a molecule’s energy on a simulated quantum chip

Run a variational quantum eigensolver for a small molecule on a simulated chip with a real device’s noise, compare it with the exact energy, and see how much error mitigation and how many shots chemical accuracy takes.

Correcting readout errors removed 93% of the error. Underestimating one misreading rate by less than a tenth of a percentage point would push the result past 1.6 mHa.

See it work

A real run, step by step.

  1. Name the molecule, the basis and what you want to know. Vicena turns the question into a plan of tasks before any work starts.

    1. Ask in your own words

    Name the molecule, the basis and what you want to know. Vicena turns the question into a plan of tasks before any work starts.

  2. It put the benchmark on the Task Board, said it would keep the energy's bias apart from its measurement error, compared the dates of six IBM calibration snapshots and downloaded Boston's, recording its checksum.

    2. It plans the benchmark and picks a chip

    It put the benchmark on the Task Board, said it would keep the energy's bias apart from its measurement error, compared the dates of six IBM calibration snapshots and downloaded Boston's, recording its checksum.

  3. The overview notebook opens next to the chat: the bias of each method against the ±1.6 mHa band, the shot budgets, and a table of what was tested and what is still open.

    3. It works in notebooks beside the chat

    The overview notebook opens next to the chat: the bias of each method against the ±1.6 mHa band, the shot budgets, and a table of what was tested and what is still open.

  4. The study notebook checks the one-qubit reduction against the exact energy, compiles the circuit to the chip's native pulses, fixes the qubit by a rule before any result, and compares the noisy simulation with Qiskit Aer.

    4. It checks each step against another

    The study notebook checks the one-qubit reduction against the exact energy, compiles the circuit to the chip's native pulses, fixes the qubit by a rule before any result, and compares the noisy simulation with Qiskit Aer.

  5. The reply gives the exact energy, the error of each method and the shots for about 95% of runs within 1.6 mHa in one table, and links the notebooks.

    5. The answer comes first, with its evidence

    The reply gives the exact energy, the error of each method and the shots for about 95% of runs within 1.6 mHa in one table, and links the notebooks.

  6. Vicena states that the budget assumes the readout probabilities are known, shows that underestimating one readout probability by 0.10 points breaks the target, and notes that one qubit with no entangling gate does not establish accuracy for larger molecules.

    6. It says what the simulation assumes

    Vicena states that the budget assumes the readout probabilities are known, shows that underestimating one readout probability by 0.10 points breaks the target, and notes that one qubit with no entangling gate does not establish accuracy for larger molecules.

raw error, 4.6 times the 1.6 mHa target
+7.34 mHa
of that error removed by readout correction, leaving +0.53 mHa
93%
shots for 95.6% of simulated runs within 1.6 mHa
5.2×10⁵
underestimate of one readout probability that pushes the bias to +1.96 mHa, past the target
0.10 pp
See the full example

Run it

The molecule and its geometry, such as a bond length, and the basis set if you have one in mind.

Optional: the device whose published calibration sets the noise. Without one, Vicena uses a current IBM device.

Optional: a target accuracy, the mitigation to compare, or a shot budget.

What you get

  • The exact ground-state energy as the reference
  • The VQE energy without noise, with the chip’s noise, and with readout correction and zero-noise extrapolation
  • The shots needed for chemical accuracy, with their error bars
  • A notebook with every circuit, calibration and result

What you need

The molecule

Name the molecule and give its geometry. Small molecules in a minimal basis fit a few qubits, which is what today’s chips can run; Vicena says when a molecule needs an active space.

How it works

Vicena builds the molecule’s qubit Hamiltonian, computes the exact energy as the reference, and optimises a variational circuit without noise. It then runs the same circuit on a simulation of the chosen chip with the noise of its published calibration, applies readout correction and zero-noise extrapolation, and repeats the measurement at several shot counts to show how the error falls.

Limits

  • A simulated chip follows its calibration’s noise model; a run on the hardware itself can differ.
  • Only molecules small enough for a few qubits are practical.

References

  1. Kandala A. et al. Hardware-efficient variational quantum eigensolver for small molecules and quantum magnets. Nature 2017, 549, 242–246.
  2. Temme K., Bravyi S., Gambetta J. M. Error mitigation for short-depth quantum circuits. Phys. Rev. Lett. 2017, 119, 180509.