QSCI, SqDRIFT and PRIME-SqDRIFT

Quantum-selected configuration interaction (QSCI / SQD)

Exact diagonalization of the electronic Hamiltonian (full configuration interaction, FCI) scales exponentially with the number of orbitals, because the Hamiltonian lives in the space of all Slater determinants. Yet the ground state is typically dominated by a smaller fraction of those determinants.

Quantum-selected configuration interaction (QSCI), also known as sample-based quantum diagonalization (SQD), uses a quantum computer only for the selection of that small set of determinants:

  1. Prepare a quantum state that has support on the important determinants.

  2. Measure it in the computational basis. Every bit string is an occupation pattern, i.e. a determinant.

  3. Collect the distinct determinants seen in the samples; they span a subspace of the full Hilbert space.

  4. Filter out unphysical determinants, e.g. those that violate electron number or spin conservation.

  5. Project the Hamiltonian onto that subspace and diagonalize it classically.

The result is a variational upper bound on the ground state energy, and the quantum device only has to produce samples. Since the diagonalization is classical, the energy is insensitive to sampling noise in the amplitudes; only the support of the samples matters, i.e. which determinants are present, not their amplitudes.

The quality of QSCI hinges entirely on the state being sampled: a good state finds the important determinants with few shots, while a poor one has little overlap with the ground state support.

Krylov subspace QSCI (SKQD)

Sample-based Krylov quantum diagonalization (SKQD) improves the sampled state by borrowing from Krylov methods. Starting from a reference state \(|\Psi_\text{ref}\rangle\) (typically Hartree-Fock), one considers the Krylov states generated by real-time evolution

\[|\Psi_k\rangle = e^{-iHk\tau} |\Psi_\text{ref}\rangle, \qquad k = 1, \ldots, d,\]

where \(\tau\) is a time step and \(d\) the maximum Krylov order. Each \(|\Psi_k\rangle\) is sampled, and the union of all observed determinants defines the subspace. Time evolution spreads the weight of the reference state over determinants connected to it by the Hamiltonian, so the Krylov states are much better at finding the relevant determinants than the reference state alone. The algorithm provably converges in polynomial time (gate depth * amount of samples) towards the ground state energy under the assumption that that the ground state has a polynomial support in the computational basis.

The drawback is that implementing \(e^{-iHk\tau}\) exactly (e.g. with Trotterization) requires deep circuits, which are expensive on present-day quantum hardware and for large simulations.

Adding qDRIFT

qDRIFT is a randomized approximation to the Hamiltonian time evolution. Writing the Hamiltonian as a sum of terms \(H = \sum_j h_j P_j\), qDRIFT builds a circuit by randomly drawing terms with probability proportional to the magnitude \(|h_j|\) and applying a short evolution under each drawn term (\(e^{-i h_j P_j \tau}\)). The depth of a circuit then depends on the number of drawn terms (the subsequence length) rather than on the number of terms in the Hamiltonian. The stochastic nature of this procedure means that performing the random sampling multiple times (the number_of_randomizations) reduces the approximation error, which averages out over independent random circuits.

SqDRIFT

SqDRIFT combines the two ideas: the Krylov states of SKQD are prepared with qDRIFT-compiled time evolution. Different random circuits sample different determinants, and since QSCI only needs the support of the samples (not accurate amplitudes), the randomness may even be helpful: more randomizations can explore more of the space (though only up to a certain limit — we still want to evolve in the right direction). This makes SqDRIFT a promising near-term algorithm for quantum chemistry.

In Kvantify Qrunch the algorithm is controlled by the options (see SqDriftOptions):

Option

Effect

subsequence_length

Number of Hamiltonian terms drawn per qDRIFT circuit. Longer means more accurate time evolution and deeper circuits.

maximum_krylov_order

The largest Krylov order \(d\); one circuit (per randomization) is generated for each \(k = 1, \ldots, d\).

number_of_randomizations

Number of independent qDRIFT circuits per Krylov order. More randomizations discover more determinants at the cost of more samples.

use_qeb_gates

Use qubit-excitation-based (QEB) gates in place of exact fermionic evolution, giving shallower circuits.

seed

Seed for the random term sampling, for reproducibility.

The baseline SqDRIFT and enhanced PRIME-SqDRIFT builders set \(\tau\) separately through with_time_step(time_step). Changing it changes the evolution times \(k\tau\) without changing the number of Krylov circuits. With one reference, a pass over the Krylov sequence uses \(d\) times the number of randomizations times the shots per circuit.

PRIME-SqDRIFT

PRIME-SqDRIFT brings together Kvantify’s proprietary SqDRIFT functionality, including SHARP and reference-state encoding. PRIME is an acronym for Progressive Refinement for Improved Measurement Efficiency. These enhancements are configured through the .prime_sqdrift() calculator selector, and include Re-encoding of the reference state from the current subspace wavefunction (state encoding), so later Krylov states start from a better state than Hartree-Fock. This improves accuracy at the cost of deeper circuits.

Multiple passes over the Krylov sequence lets PRIME-SqDRIFT continue sampling with the distribution learned from earlier circuits.

See Also

Further reading

  • QSCI: Kanno et al., Quantum-selected configuration interaction: classical diagonalization of Hamiltonians in subspaces selected by quantum computers, arXiv:2302.11320

  • SQD: Robledo-Moreno et al., Chemistry beyond the scale of exact diagonalization on a quantum-centric supercomputer, arXiv:2405.05068

  • SKQD: Yu et al., Quantum-centric algorithm for sample-based Krylov diagonalization, arXiv:2501.09702

  • qDRIFT: Campbell, A random compiler for fast Hamiltonian simulation, Phys. Rev. Lett. 123, 070503 (2019), arXiv:1811.08017

  • SqDRIFT: Piccinelli et al., Quantum chemistry with provable convergence via randomized sample-based Krylov quantum diagonalization, arXiv:2508.02578