Quantum Probability Image Encoding (QPIE)
- Quantum Probability Image Encoding (QPIE) is a quantum data-loading strategy that maps classical grayscale images into quantum states via amplitude encoding using logarithmic qubit scaling.
- It uses recursive controlled-rotation circuits to transform normalized pixel intensities into basis state amplitudes, facilitating quantum machine learning, image compression, and feature extraction.
- Advanced techniques like tensor network approximations and JPEG-assisted pipelines mitigate exponential state preparation costs, enhancing feasibility on NISQ devices.
Quantum Probability Image Encoding (QPIE) is a quantum data-loading strategy designed to embed classical grayscale images directly into quantum states via amplitude encoding. It achieves minimal qubit usage—logarithmic in the number of pixels—by mapping normalized pixel intensities to state amplitudes. QPIE has emerged as a key foundation for quantum image processing, supporting downstream applications in quantum machine learning, image compression, and quantum-enhanced feature extraction. Its construction, implementation overhead, and empirical trade-offs have been comprehensively benchmarked against alternatives such as FRQI, NEQR, and tensor network approaches.
1. Mathematical Formulation and State Preparation
Given a non-negative grayscale image of pixels (), QPIE normalizes the intensity vector and encodes it as the amplitudes of a pure quantum state over qubits:
This construction uses -normalization to satisfy the unit-norm condition . Each computational-basis state corresponds to a unique pixel address, typically via row- or column-major ordering. For square images of pixels, the encoding uses $2n$ qubits, the theoretical minimum for uniquely specifying all amplitudes (Parigi et al., 29 Jul 2025, Lang et al., 2024, Sarkar, 2023).
State preparation proceeds via recursive sequences of single- and multi-controlled 0 rotations (binary-tree construction), requiring the computation of partial sums and spherical angle decompositions:
- For 1 amplitudes, 2 controlled-rotation gates and 3 CNOT gates are required (Pangeva et al., 9 Jun 2026, Lang et al., 2024).
- Restricting to real-valued intensities (common in image data) enables the exclusive use of real rotations, omitting arbitrary-phase gates (Sarkar, 2023).
QPIE’s state preparation circuit is equivalent to amplitude encoding for classical data, but specialized for images with a natural mapping between the 2D pixel grid and the computational basis.
2. Resource Scaling and Optimization Strategies
QPIE achieves the minimal qubit count for encoding 4-pixel images: 5 qubits. However, its generic state-preparation circuit is exponentially costly in gate count and depth:
- Direct state preparation is 6 in both gate count and circuit depth for arbitrary images (Parigi et al., 29 Jul 2025, Pangeva et al., 9 Jun 2026).
- Resource optimizations are possible for sparse or structured images, such as skipping zero-intensity regions or exploiting classical precomputation of rotation angles (Lang et al., 2024).
Table 1: Comparison of Qubit and Preparation Complexity (for 7 images)
| Representation | Qubit Count | Preparation Complexity |
|---|---|---|
| TNR | 8 | (instance-dependent) |
| FRQI | 9 | 0 (orig.), 1 (EFRQI) |
| NEQR | 2 (3=bit-depth) | 4 |
| QPIE | 5 | 6 |
QPIE achieves the highest compression ratio in terms of bits-per-qubit, with a 7 reduction on 16×16 images compared to their classical representation (Parigi et al., 29 Jul 2025).
3. Advanced State Preparation: Tensor Network and Schmidt Decomposition
To address the exponential circuit depth and CNOT count on near-term hardware, QPIE can be hybridized with tensor network techniques:
- Matrix Product State (MPS) Approximation: For sufficiently smooth images, the amplitude vector can be approximated by an MPS of low bond dimension 8, yielding a circuit of 9 gates and 0 depth (Bohun et al., 2024). For smooth, low-entanglement images, 1 suffices, resulting in dramatically shallower circuits.
- Schmidt Decomposition (Low-Rank Truncation): By truncating the bipartite Schmidt rank to the top-2 terms (cumulative weight 3), QPIE circuits achieve 4 scaling in entangling gates while incurring only a modest mean-squared error (5 for 6) (Pangeva et al., 9 Jun 2026). Empirically, an 7 depth reduction was realized on 8 images at little perceptual cost.
Hybrid amplitude-compression methods thus substantively expand the tractable image size on NISQ devices.
4. Hybrid Classical-Quantum Image Preparation (JPEG-Assisted QPIE)
JPEG-assisted QPIE (JQPIE) and its quantization-free variant (QF-JQPIE) further reduce the quantum state-preparation overhead:
- JQPIE loads JPEG-quantized DCT coefficients into the quantum register, implements blockwise decompression with inverse zigzag permutation and quantization, and applies a quantum inverse DCT (Boosari, 5 Feb 2026).
- QF-JQPIE omits quantization, loading DCT coefficients directly and yielding a unitary, ancilla-free quantum pipeline.
This hybrid reduces the main cost from 9 to 0 by truncating frequency coefficients, where 1 is the number of active coefficients per 2 block. Empirical studies observe 3–4 reductions in gate count/depth with negligible or positive PSNR/SSIM impact compared to direct QPIE.
5. Practical Applications: Quantum Edge and Feature Extraction
QPIE’s amplitude encoding directly supports quantum implementations of classical image processing primitives:
- Quantum Gradient Computation: QPIE states lend themselves to linear, translation-invariant differencing via a lag-2 permutation pipeline, enabling Sobel-like gradient kernels in superposition (Sohail et al., 1 May 2026).
- Edge and Corner Detection: QPIE with quantum Sobel–Harris pipelines achieves superior edge density/fragmentation and up to 100% corner-detection accuracy at zero false-positive rate (in ideal simulation) versus FRQI. QPIE-based outputs exhibit lower shot noise and more coherent gradient sensitivity, especially under restrictive measurement budgets (Sohail et al., 1 May 2026).
- In all cases, state preparation dominates resource cost, highlighting the necessity of hybrid classical-quantum and compressed-preparation strategies for scalability.
6. Empirical Benchmarks and Quantum Image Kernel Learning
QPIE has been applied to benchmark tasks in quantum machine learning and classification:
- In supervised binary classification with quantum kernels 5 (via QPIE), QPIE matches FRQI accuracy (≈97%) on Fashion-MNIST (16×16) at half the qubit cost and only marginally below the classical linear kernel (98%) (Parigi et al., 29 Jul 2025).
- QPIE-encoded images produce moderately compressed Gram matrices (intermediate off-diagonal overlaps 6–7), placing it between highly-compressed FRQI and less-compressed NEQR/TNR embeddings for kernel SVMs.
7. Limitations, Trade-offs, and Future Directions
The key advantages of QPIE are minimal qubit usage, expressivity for arbitrary grayscale data, and compatibility with quantum transformations (QFT, wavelets, global filters) (Lang et al., 2024). However:
- Measurement Bottleneck: Exact pixel retrieval is only possible in the infinite-shot (sampling) limit; typically, 8 shots are required per pixel, imposing resource demands on quantum readout.
- Exponential State Preparation: Full-rank QPIE preparation is infeasible for large images without compression or structure; hybrid methods are critical for scalability on NISQ processors (Pangeva et al., 9 Jun 2026, Bohun et al., 2024, Boosari, 5 Feb 2026).
- No direct storage use: QPIE’s encoding is transient and suitable only for in-circuit computation; measurement collapses the entire superposition.
Ongoing developments focus on adaptive, structure-exploiting compression (tensor networks, JPEG-DCT domain, Schmidt truncation), hybrid pipelines leveraging classical pre/post-processing, and noise-resilient state-preparation tailored to available hardware error budgets.
References
- (Parigi et al., 29 Jul 2025) Supervised Quantum Image Processing
- (Pangeva et al., 9 Jun 2026) Schmidt Decomposition-Based Methods for Efficient Quantum Image Encoding
- (Lang et al., 2024) Representation of Classical Data on Quantum Computers
- (Bohun et al., 2024) Entanglement scaling in matrix product state representation of smooth functions and their shallow quantum circuit approximations
- (Sohail et al., 1 May 2026) Quantum Gradient-Based Approach for Edge and Corner Detection Using Sobel Kernels
- (Boosari, 5 Feb 2026) Hybrid Quantum Image Preparation via JPEG Compression
- (Sarkar, 2023) Novel Design of Quantum Circuits for Representation of Grayscale Images
- (Mohsen et al., 2021) Image Compression and Classification Using Qubits and Quantum Deep Learning