Skip to content
Quantum.world

Research

QuScope: An Open-Source Python Framework for Quantum-Circuit Simulation of Transmission Electron Microscopy

Overview Research area: Quantum computing algorithms applied to electron microscopy simulation — specifically mapping the transmission electron microscopy (TEM) image-formation pipeline onto quantum c

QuScope: An Open-Source Python Framework for Quantum-Circuit Simulation of Transmission Electron Microscopy
arXiv
2608.02782
Published
2026-08-03
Authors
Sean D. Lam, Roberto dos Reis

AI summary

Overview

Research area: Quantum computing algorithms applied to electron microscopy simulation — specifically mapping the transmission electron microscopy (TEM) image-formation pipeline onto quantum circuits.

Technical level: Advanced. The paper assumes familiarity with the gate model of quantum computation (amplitude encoding, diagonal unitaries, quantum Fourier transforms) as well as electron-optics concepts (phase gratings, Fresnel propagation, multislice, aberrated objective lenses, CTEM/STEM).

Scope (one sentence): QuScope is an open-source, pip-installable Python package that implements the full TEM image-formation pipeline as quantum circuits and validates the resulting simulations against a classical reference implementation.

What This Paper Is About

In a transmission electron microscope, the image forms because the electron wavefunction evolves coherently through the specimen and the objective lens — a sequence of unitary transformations. That is structurally the same kind of operation a gate-based quantum computer performs. The authors build a software framework that expresses this entire imaging pipeline explicitly as quantum circuits, so that TEM simulation can be written in the language of quantum algorithms rather than only in classical wave-propagation code. The goal is a validated, reusable toolkit, not a demonstration of quantum advantage.

Key Contributions

  1. A quantum-circuit formulation of the complete TEM imaging pipeline. The electron wavefunction is amplitude-encoded into 2 log2 N qubits for an N x N grid, and each optical element — phase-grating transmission through the specimen, Fresnel propagation between slices, and the aberrated objective lens — is expressed as a diagonal unitary conjugated by quantum Fourier transforms.

  2. An implemented, validated software package (QuScope v0.2.0). Three imaging regimes are covered: conventional TEM under the phase-object approximation, full multislice CTEM, and STEM for thick specimens.

  3. A classical "twin" validation strategy. Every quantum result is checked against an independent classical implementation of the same physics, with quantum and classical multislice exit waves reported to agree at unit fidelity, and physical constants verified against standard references.

  4. Resource and feasibility analysis for near-term hardware. The authors provide transpiled quantum-resource estimates for each algorithm and analyze the diagonal-synthesis bottleneck as the factor governing execution on near-term quantum hardware.

Main Findings

  • Exact agreement with classical simulation: Quantum and classical multislice exit waves are reported to agree at unit fidelity, using exact, noise-free statevector simulation of the circuits.

  • Validated constants: All physical constants used in the pipelines are checked against standard reference values.

  • Three pipelines working: Conventional TEM under the phase-object approximation, multislice CTEM, and multislice STEM for thick specimens are all implemented and validated within the v0.2.0 release — the abstract does not report per-pipeline accuracy figures beyond the overall unit-fidelity statement.

  • Resource estimates per algorithm: Transpiled circuit-resource estimates are given for each algorithm, though the specific qubit counts, gate counts, or circuit depths are not stated in the abstract.

  • The bottleneck is diagonal synthesis: The analysis identifies the cost of synthesizing the diagonal unitaries — not the Fourier transforms — as the limiting factor for executing these circuits on near-term hardware.

  • No quantum hardware was used: Every reported result comes from classical statevector simulation of the circuits; the abstract makes no claim of execution on a real quantum device.

Methodology in Plain English

The electron wave in the microscope is a two-dimensional array of complex numbers. The framework stores that array in the amplitudes of a quantum register, using a number of qubits that grows only logarithmically with the grid size — a 1024-by-1024 grid, for instance, fits in 20 qubits. Each physical step the electron undergoes is then written as a quantum operation.

The trick that makes this compact is that the interesting steps — passing through a thin slice of specimen, drifting to the next slice, and passing through the lens aberrations — all act on each point of the wave independently, which in quantum terms means they are diagonal operations. In the representation chosen, those diagonal operations are sandwiched between quantum Fourier transforms. So the same pattern — Fourier transform, apply phases, inverse Fourier transform — is reused for every optical element, with only the phase values changing.

To check the work, the authors wrote a conventional classical simulator that performs the same physics numerically, and compared the two outputs directly. Because the circuits were run exactly (no noise, full statevector), the comparison is a test of the circuit construction itself rather than of hardware behavior.

Why This Matters

Impact on research: The framework gives the quantum-algorithms community a concrete, physically grounded benchmark drawn from a real scientific instrument, and gives the electron-microscopy community a way to ask which parts of its simulation workload might eventually map onto quantum hardware. Because the classical twin is included, the mapping can be audited rather than taken on faith — a useful property for a field where subtle phase errors matter.

Potential applications (as directions this enables, not results demonstrated in the paper):

  • Simulation of thick specimens where multislice calculations are computationally heavy.
  • STEM and CTEM modelling for materials science and nanostructure characterization.
  • Teaching and prototyping: a working example of amplitude encoding and diagonal unitary design applied to a real physical problem.
  • Benchmarking quantum resource requirements for scientific simulation workloads before hardware exists to run them.

Industry relevance: The diagonal-synthesis bottleneck analysis speaks directly to quantum-hardware and compiler roadmaps, identifying which primitive would need to improve for this class of application to run on real devices. For microscopy and metrology, the package offers an openly licensed, tested simulation route rather than a proprietary one.

Future Directions

  • Executing on real hardware: The present results are noise-free statevector simulations; how these circuits behave under realistic device noise, and whether error mitigation suffices, remains open.

  • Reducing diagonal-synthesis cost: Since the authors identify this as the governing bottleneck, improved methods for compiling diagonal unitaries — or circuit structures that avoid them — are the obvious next lever.

  • Broadening the physics: The abstract covers the phase-object approximation and elastic multislice CTEM/STEM; extensions to other imaging modes or inelastic processes are not reported and would be natural follow-ons.

  • Comparison against experiment: Validation here is quantum-versus-classical, not simulation-versus-microscope; benchmarking predicted images against measured TEM data is a separate and untested step.

Target Audience

Quantum-computing researchers interested in application-level algorithm design and resource estimation; electron-microscopy and materials-science researchers who simulate image formation and want to understand the quantum mapping; scientific software developers looking for a documented, tested, pip-installable reference implementation of amplitude-encoded physical simulation; and graduate students in either field working at the intersection of quantum algorithms and instrument simulation.

Authors’ abstract

Image formation in transmission electron microscopy (TEM) is governed by the coherent evolution of the electron wavefunction through the specimen and the objective lens. This physics maps naturally onto the gate model of quantum computation. We present QuScope, an open-source Python framework that expresses the complete TEM image-formation pipeline as quantum circuits. The $N\times N$ electron wavefunction is amplitude-encoded in $2\log_2 N$ qubits, and every optical element, including phase-grating transmission, Fresnel propagation between specimen slices, and the aberrated objective lens, is implemented as a diagonal unitary conjugated by quantum Fourier transforms. On this foundation, QuScope v0.2.0 implements validated imaging pipelines, covering conventional TEM under the phase-object approximation, full multislice CTEM and STEM for thick specimens. All quantum results reported here come from exact, noise-free statevector simulation of the circuits on classical hardware, and every result is validated against a classical twin implementation. Quantum and classical multislice exit waves agree to unit fidelity, and all physical constants are verified against standard references. We provide transpiled quantum-resource estimates for each algorithm, an analysis of the diagonal-synthesis bottleneck that governs near-term hardware execution, and a fully tested, documented, and pip-installable package. QuScope v0.2.0 is available at https://github.com/QuScope/QuScope.

Read the original paper