Papers
Topics
Authors
Recent
Search
2000 character limit reached

Variational Quantum Classifier

Updated 8 May 2026
  • Variational Quantum Classifier (VQC) is a supervised learning model that encodes classical data as quantum states and uses trainable quantum circuits to output class scores.
  • It integrates a classical-to-quantum feature map, a parameterized ansatz, and measurement protocols, optimized via hybrid quantum–classical strategies.
  • Empirical benchmarks demonstrate VQC’s potential in fraud detection, bioinformatics, and graph classification, despite challenges like barren plateaus and noise.

A variational quantum classifier (VQC) is a supervised learning algorithm that leverages parameterized quantum circuits to separate classical or quantum data embedded in a quantum Hilbert space. VQCs instantiate a hybrid quantum–classical pipeline: encoding a feature vector into a quantum state, transforming that state with a variational (trainable) quantum circuit (“ansatz”), and measuring one or more qubits to produce class probabilities or scores. Model parameters are iteratively tuned to minimize a classical loss function by means of (typically) quantum-aware optimization strategies. Rigorous performance benchmarks have established VQCs as a leading paradigm for near-term quantum machine learning applications, particularly in challenging settings such as tabular fraud detection, high-dimensional bioinformatics, and quantum-enhanced graph classification.

1. Formal Definition and Circuit Structure

A VQC is defined by three core modules: a classical-to-quantum feature map, a parameterized variational circuit (ansatz), and a measurement/post-processing protocol.

  • Feature map: xRdϕ(x)H2nx\in\mathbb{R}^d \mapsto |\phi(x)\rangle \in \mathcal{H}_{2^n}, where the map may be realized as
    • Amplitude encoding: ϕ(x)=i=02n1xii|\phi(x)\rangle = \sum_{i=0}^{2^n-1} x'_i|i\rangle with normalization x2=1\|x'\|_2=1 (e.g., Qiskit's RawFeatureVector) (Shahriyar et al., 3 Mar 2025, Miyahara et al., 2021).
    • Angle encoding: Uϕ(x)=j=1nRY(xj)U_\phi(x) = \bigotimes_{j=1}^n R_Y(x_j) or RY(πx~j)R_Y(\pi \tilde x_j) with xj[π,π]x_j \in [-\pi,\pi] (2504.10073, Maragkopoulos et al., 2024, Qin et al., 2022).
    • Nonlinear-rotational encoding (e.g., via arctan/arccos transformations): Uϕ(x)=j=1nRZ(Φj(x))RX(Φj(x))U_\phi(x) = \bigotimes_{j=1}^n R_Z(\Phi_j(x))\cdot RX(\Phi'_j(x)) (Hwang et al., 16 Apr 2025).
    • Graph and set encodings: mapping graph adjacency or vertex features into tensor products of multi-qubit Pauli operators and engineered diagonal rotations (An et al., 24 Jan 2025).
  • Ansatz: The variational circuit V(θ)V(\theta) comprises LL layers of parameterized one-qubit rotations and entangling gates, with common forms including
    • RealAmplitude (Qiskit): Periodic blocks of RYR_Y rotations on each qubit interleaved with CNOT entanglers.
    • EfficientSU2: Alternating layers of general ϕ(x)=i=02n1xii|\phi(x)\rangle = \sum_{i=0}^{2^n-1} x'_i|i\rangle0 single-qubit gates and full-entanglement CNOT mesh, supporting increased expressivity at the cost of increased depth and parameter count.
    • Circular and hardware-efficient topologies: Chain, ring, or full entanglement schemes adaptable to device constraints (Souza et al., 21 May 2025, Sen et al., 2021, Yao et al., 2024, Shahriyar et al., 3 Mar 2025).
  • Measurement protocol: The classifier typically measures the ϕ(x)=i=02n1xii|\phi(x)\rangle = \sum_{i=0}^{2^n-1} x'_i|i\rangle1 expectation value on one or more designated qubits:

    ϕ(x)=i=02n1xii|\phi(x)\rangle = \sum_{i=0}^{2^n-1} x'_i|i\rangle2

    More general schemes may involve measurement on multiple qubits, post-processing bitstrings via maximum-likelihood (MLE) decoding (Zhang et al., 2021), or projection onto engineered subspaces for unambiguous classification (Ptáček et al., 12 Nov 2025).

2. Quantum Feature Maps and Data Encoding

The design and choice of the quantum feature map is critical to the representational capacity and effective function of the VQC:

  • Amplitude encoding preserves ϕ(x)=i=02n1xii|\phi(x)\rangle = \sum_{i=0}^{2^n-1} x'_i|i\rangle3 qubit efficiency and enables direct inner-product kernel correspondence, but is sensitive to normalization, feature padding, and may lack nonlinearity unless coupled with expressive ansätze (Shahriyar et al., 3 Mar 2025, Miyahara et al., 2021).
  • Angle/rotation encoding is widely used for mid-sized ϕ(x)=i=02n1xii|\phi(x)\rangle = \sum_{i=0}^{2^n-1} x'_i|i\rangle4, mapping each feature to ϕ(x)=i=02n1xii|\phi(x)\rangle = \sum_{i=0}^{2^n-1} x'_i|i\rangle5 or ϕ(x)=i=02n1xii|\phi(x)\rangle = \sum_{i=0}^{2^n-1} x'_i|i\rangle6 rotations. Its simplicity supports near-term implementation and provides a direct pathway for real-valued and principal-component features (2504.10073, Souza et al., 21 May 2025).
  • Nonlinear/parametric maps (such as PauliFeatureMaps and nonlinear ϕ(x)=i=02n1xii|\phi(x)\rangle = \sum_{i=0}^{2^n-1} x'_i|i\rangle7–ϕ(x)=i=02n1xii|\phi(x)\rangle = \sum_{i=0}^{2^n-1} x'_i|i\rangle8 decompositions) impose higher-order polynomial structures or entanglement-inducing kernels, thereby differentiating data distributions at a higher capacity per qubit (Maragkopoulos et al., 2024, Souza et al., 21 May 2025).
  • QRAC-based and trainable embeddings for discrete features enable logarithmic qubit scaling for categorical/binary data, overcoming information-density limits of “one-hot” approaches. Parameterized QRAC or trainable-discrete encodings achieve qubit-resource efficiency without the linear-separability bottleneck of fixed encodings (Yano et al., 2020, Thumwanit et al., 2021).

3. Variational Circuit Architectures, Depth, and Parameterization

VQC expressivity is determined by the entanglement structure, depth, and parameterization of the variational ansatz:

  • RealAmplitude/TwoLocal ansätze typically use ϕ(x)=i=02n1xii|\phi(x)\rangle = \sum_{i=0}^{2^n-1} x'_i|i\rangle9 repetitions, with each layer comprising x2=1\|x'\|_2=10 (sometimes x2=1\|x'\|_2=11 for EfficientSU2) trainable parameters per qubit and entanglement operations; for example, five qubits and three repetitions give 15 (RealAmplitude) to 45 (EfficientSU2) free angles (Shahriyar et al., 3 Mar 2025).
  • Hardware-efficient and adaptive topologies (e.g., circular, full, or problem-inspired entanglement) optimize for circuit depth and connectivity, balancing power against hardware-induced noise (Souza et al., 21 May 2025, Yao et al., 2024).
  • Depth scaling and barren plateaus: Empirical and theoretical studies confirm that circuit depth and layer count must be calibrated to data complexity; excessive depth leads to flat loss landscapes (“barren plateaus”) and loss of trainability (Sen et al., 2021). Shallow circuits remain preferable for current NISQ devices.
  • Data re-uploading strategies interleave classical feature map and variational layers repeatedly, increasing circuit expressivity without excessive parameter proliferation (Mohanty et al., 2 Apr 2026).

4. Training Methodologies, Loss Landscape, and Optimization

Training VQCs involves quantum–classical optimization:

  • Loss functions: Binary classification uses cross-entropy or hinge loss, mapping x2=1\|x'\|_2=12 (from quantum measurement) to class probability. For small datasets, mean-squared error has also been used (Sen et al., 2021).
  • Gradient estimation: When allowed by simulation or hardware, analytic gradients are computed via the parameter-shift rule:

    x2=1\|x'\|_2=13

  • Optimizers: Both gradient-free methods (COBYLA, SPSA, genetic algorithms) and classical gradient-based routines (Adam, SLSQP, Hessian-adaptive schedules) have been employed (Shahriyar et al., 3 Mar 2025, Maragkopoulos et al., 2024, Lin et al., 2024). The choice is driven by the cost of gradient evaluation and robustness to quantum noise.
  • Ensemble and resource-efficient strategies: Ensemble VQC with plurality voting boosts robustness to quantum noise on NISQ devices, providing improved accuracy over single classifiers or average aggregation (Qin et al., 2022). Unambiguous classifiers minimize shot count via engineered measurement strategies, enabling near-deterministic decisions with a small (few percent) accuracy penalty (Ptáček et al., 12 Nov 2025).
  • Hessian-based and adaptive learning rates: Hessian spectrum analysis provides insight into curvature, loss plateaus, and convergent behavior, enabling step-size adaptation to escape flat or high-curvature regions (Sen et al., 2021).

5. Performance Benchmarks and Empirical Applications

VQCs are empirically validated across a range of real-world and synthetic tasks:

  • Tabular and binary classification: PhishVQC achieves macro F1 = 0.89 in phishing URL detection (22% over prior VQC), using 5 qubits with RealAmplitude and EfficientSU2 ansätze (Shahriyar et al., 3 Mar 2025). Resource-efficient unambiguous VQC achieves five-fold reductions in circuit runs with minimal accuracy trade-off (Ptáček et al., 12 Nov 2025). VQC outperforms SVM baselines in dementia classification for up to 5 features (Sierra-Sosa et al., 2020).
  • Bioinformatics and biophysics: In B-cell epitope prediction, VQC achieves up to 73–74% accuracy with 10-dimensional PCA input, outperforming QSVM and classical SVM in large-sample regimes (2504.10073, Hwang et al., 16 Apr 2025).
  • Anomaly and rare-event detection: Quantum-inspired geometric-VQC hybrid models provide high minority-recall and competitive ROC-AUC in credit card fraud detection, demonstrating scalability and operating-point-aware evaluation (Mohanty et al., 2 Apr 2026).
  • Graph structured data: Tensor-based binary graph encoding for VQC (EG-VQC) preserves graph integrity and outperforms PCA reductions on MUTAG, PROTEIN, and ENZYME datasets (An et al., 24 Jan 2025).
  • Accelerator and physics data: Angle encoding with strongly entangling layers achieves x2=1\|x'\|_2=1495% accuracy in storage-ring dynamics with superlinear scaling of simulation time in depth and qubit count (Yin et al., 7 Jun 2025).
  • Astrophysics: VQC achieves up to 95% accuracy and MCC=0.509 in pulsar detection by optimizing feature selection, circuit type (ZZFeatureMap), and EfficientSU2 ansatz (Souza et al., 21 May 2025).
  • Photonic hardware: Four-mode photonic processors attain up to 93.3% accuracy on Iris using gradient-free genetic optimization (Lin et al., 2024).
  • Ensemble voting and NISQ: Ensemble quantum classifiers with plurality voting on NISQ hardware outperform baselines by +16% (two classes) and +6.1% (four classes) on MNIST (Qin et al., 2022).

6. Computational Resources, Scaling, and Hardware Realization

  • Qubit requirements: Amplitude encoding achieves logarithmic scaling in qubit count, whereas angle encoding demands one qubit per feature. QRAC-type encodings further compress categorical/binary features (Shahriyar et al., 3 Mar 2025, Yano et al., 2020).
  • Simulator and hardware considerations: Most studies rely on noiseless/statevector simulation, but several have explored explicit noise models (Qiskit Aer, IBMQ backends) and found moderate resilience under typical decoherence rates (Yin et al., 7 Jun 2025, Qin et al., 2022, Yao et al., 2024).
  • Training cost: Wall-clock time and computational resources scale superlinearly in qubit count and circuit depth. Shallow, qubit-efficient circuits and hybrid classical–quantum autoencoder preprocessing help mitigate circuit complexity (Maragkopoulos et al., 2024).

7. Limitations, Practical Challenges, and Future Directions

  • Trainability and barren plateaus: Increasing ansatz depth or number of qubits induces flat loss landscapes, slowing convergence and reducing generalization (Sen et al., 2021).
  • Measurement noise and finite statistics: Resource-efficient, unambiguous classifiers and quantum-inspired feature engineering (kernel PCA, tensor-network preprocessing) address imposed shot limitations and manage noise (Ptáček et al., 12 Nov 2025, Maragkopoulos et al., 2024).
  • Expressivity vs. trainability: Highly expressive feature maps and ansätze can degrade performance via overfitting or vanishing gradients; careful selection of shallow, hardware-efficient forms is recommended.
  • Integration and scalability: Hybrid pipelines combining quantum encodings or VQC feature extractors with classical post-processing, as well as advanced optimizer schedules and error mitigation, remain active research areas (Maragkopoulos et al., 2024, Mohanty et al., 2 Apr 2026).
  • Hardware deployment: Most available results are based on simulation; real-device experiments are still rare and subject to decoherence and noise-induced accuracy degradation, though ensemble and error-mitigation techniques show promise (Qin et al., 2022, Lin et al., 2024).

Researchers continue to pursue ansatz design, kernel-theoretic understanding, resource-efficient embeddings, and practical protocols for in-the-loop hardware validation to bridge the classical–quantum performance divide and to realize scalable quantum-enhanced classification (Shahriyar et al., 3 Mar 2025, Yin et al., 7 Jun 2025, Miyahara et al., 2021, Lin et al., 2024).

Definition Search Book Streamline Icon: https://streamlinehq.com
References (18)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Variational Quantum Classifier (VQC).