Inverse ECG Reconstruction via a Preconditioned Variational Quantum Linear Solver
Authors: Xizhuo Zhang, Chao Lu, Bing Yao
Organizations: Department of Industrial & Systems Engineering, The University of Tennessee, Knoxville, TN, USA, 37996 · National Center for Computational Sciences, Oak Ridge National Laboratory, Oak Ridge, TN, USA, 37830
Inverse electrocardiography (ECG) reconstructs heart-surface potentials from body-surface measurements, enabling noninvasive mapping of cardiac electrical activity. However, the reconstruction requires solving dense and ill-conditioned linear systems, whose computational cost grows rapidly with the refined heart mesh. Quantum computing offers new opportunities for solving such systems. This paper presents a hybrid quantum-classical framework for inverse ECG reconstruction, which, to the best of our knowledge, is the first to apply a quantum linear solver to this problem. We first propose a Laplacian-regularized pre-encoding procedure to reduce the dimension of the system while improving its conditioning. Second, the resulting reduced system is encoded and solved using a coherent variational quantum linear solver (VQLS). Finally, we provide a rigorous theoretical proof establishing that the proposed framework preserves the exact solution of the original reconstruction problem throughout all stages of the computational process. Experimental results on a realistic heart-torso geometry demonstrate that our approach holds significant ability for accurate inverse ECG reconstruction. These findings highlight the potential of quantum solvers for noninvasive cardiac imaging, providing a foundation for further research into quantum-enhanced cardiac assessment and other healthcare applications.
Figures & tables
Figure 1: Flowchart of the proposed methodology. The pre-encoding stage transforms the ill-conditioned inverse system into a compact, well-conditioned reduced system and constructs an isometric decoder. The coherent VQLS then solves the reduced system on a quantum register, where a Möttönen ansatz prepares the trial quantum state, a FABLE block encoding implements the system matrix, and two projector-based measurements evaluate the cost function for parameter optimization. The decoding stage further maps the reconstructed solution from the reduced representation back to the full set of cardiac nodes.
Figure 2: Coherent VQLS circuit of the complete model ( q=6 qubits, 13 total qubits), shown at register level: Möttönen state preparation V(w) , FABLE block encoding UA , inverse state preparation Ub† , and projector read-outs.
Figure 3: Gate-level expansion of the coherent VQLS circuit, shown for q=2 on an illustrative 4×4 system. Rotation angles are data dependent and labeled symbolically, and the number of RZ gates depends on the signs of the amplitudes. The two global-phase gates, one from V(w) and one from Ub† , are omitted because they do not affect either projector probability. All three models share this structure and differ only in q : q=6 for the complete model and Ablation 2, and q=8 for Ablation 1.
Quantity
Complete model
Ablation 1
Ablation 2
System qubits q
6
8
6
Ancilla qubits (1 flag +q index)
7
9
7
Total qubits 2q+1
13
17
13
Encoded dimension N=2q
64
256
64
Möttönen parameters
64
256
64
FABLE subnormalization α=2q
64
256
64
Table 1: Quantum resources of the coherent VQLS circuit for each model.
Figure 4: (a) Reference mapping of the heart-surface electrodynamics at frame t=475 . (b) Reconstructed mappings by the VQLS and CLS under varying noise conditions and experimental settings at frame t=475 .
Figure 5: Per-frame RE (log scale) of the complete model, Ablation 1, and Ablation 2 under noise levels σξ=0,0.01,0.02 , for (a) the VQLS and (b) CLS solutions.
Figure 6: Infidelity 1−F (log scale) between the CLS and VQLS reconstructions of the complete model, Ablation 1, and Ablation 2 under noise levels σξ=0,0.01,0.02 .
Figure 7: Number of L-BFGS-B iterations per frame. Lines denote the median and shaded bands the range over three random restarts. The dashed line marks the 500-iteration budget.
Figure 8: Mean wall-clock time per frame for each pipeline stage (log scale) over all frames.
Appendix figures & tables2 assets
Supplementary material from the paper’s appendix.
Appendix
Setting
Value
Description
N=2q
64 ( q=6 )
Encoded dimension and number of system qubits
s
N−1=63
Number of selected support nodes in pre-encoding
τ
0.10
Certified error level for noise-free data, Eq. ( 5 )
λmax , bisection steps (noise-free)
18.0067 , 4
Search for Eq. ( 5 )
λmax , bisection steps (noisy)
104 , 6
Search for Eq. ( 6 )
Block sizes
3 to bmax=16
Bounds of the partition search
Appendix
Table S1 : Configuration of the proposed framework.
Symbol
Description
Operators and Functions
∥⋅∥
Euclidean norm of a vector; induced spectral norm of a matrix
(⋅)⊤ , (⋅)−1 , (⋅)+
Transpose, inverse, and Moore-Penrose pseudoinverse
Electrocardiographic imaging (ECGI) seeks to reconstruct cardiac electrical activity from body-surface potentials noninvasively. However, the associated inverse problem is severely ill-posed and requires robust regularization. While classical approaches primarily employ spatial smoothing, the temporal structure of cardiac dynamics remains underexploited despite its physiological relevance. We introduce a space-time regularization framework that couples spatial regularization with a learned temporal Fields-of-Experts (FoE) prior to capture complex spatiotemporal activation patterns. We derive a finite element discretization on unstructured cardiac surface meshes, prove Mosco-convergence, and develop a scalable optimization algorithm capable of handling the FoE term. Numerical experiments on synthetic epicardial data demonstrate improved denoising and inverse reconstructions compared to handcrafted spatiotemporal methods, yielding solutions that are both robust to noise and physiologically plausible.
Manuel Haas, Thomas Grandits, Thomas Pinetz +3
Institute for Applied Mathematics, University of Bonn, Germany · Department of Mathematics and Scientific Computing, University of Graz, Austria · Institute of Artificial Intelligence, Medical University of Vienna, Austria +2
Foundation models have recently improved electrocardiogram (ECG) representation learning, but their deployment can be limited by computational cost and latency constraints. In this work, we fine-tune ECGFounder as a high-capacity teacher for binary ECG classification on PTB-XL and the MIT-BIH Arrhythmia Database, and investigate whether knowledge distillation can transfer its predictive behavior to compact students. We evaluate two classical 1D students (ResNet-1D and a lightweight CNN-1D) and a quantum-ready pipeline that combines a convolutional autoencoder, which compresses 256-sample ECG windows into a low-dimensional latent representation, with a 6-qubit variational quantum circuit implemented in Qiskit and executed in a simulated backend. Across both datasets, the teacher provides the strongest overall performance, while distillation yields competitive students under a considerable reduction in trainable parameters. We further analyze the sensitivity of student performance to distillation settings, highlighting consistent accuracy--efficiency trade-offs when compressing a foundation ECG model into classical and quantum-ready learners under a unified evaluation protocol.
Giovanni dos Santos Franco, Felipe Mahlow, Ellison Fernando Cardoso +1
Faculty of Sciences, S˜ao Paulo State University (Unesp), Bauru, Brazil. · Hospital Israelita Albert Einstein, S˜ao Paulo, Brazil. · Laboratory of Magnetic Resonance in Neuroradiology (LIM-44), University of S˜ao Paulo Faculty of Medicine Clinics Hospital, S˜ao Paulo, Brazil.
Electrocardiographic imaging (ECGI) reconstructs heart-surface potentials from body-surface potentials, an ill-posed inverse problem. Diffusion posterior samplers combine a learned prior with an explicit forward operator that they assume to be accurate. In ECGI this operator is only an estimate, because the body changes with respiration and posture, and body composition such as subcutaneous fat is rarely known for an individual patient. The resulting operator discrepancy is structured and depends on the heart signal. We introduce OpDis-PS, a diffusion posterior sampler that models this discrepancy instead of treating it as signal-independent noise. OpDis-PS learns how the discrepancy depends on the signal, folds this into a corrected forward operator, and reconstructs with a fixed prior across all operator conditions. We study two realistic sources of discrepancy, changing lung conductivity and an added subcutaneous-fat layer. Across both, OpDis-PS reconstructs more accurately than classical regularization and learned predictors, with its largest gains on held-out cardiac pathologies.
Ricarda Buttmann, Andreas M. Lehrmann
Center for Artificial Intelligence and Robotics Technical University of Applied Sciences Würzburg-Schweinfurt, Germany