Gate-Based Variational Quantum Classifier
- Gate-based VQCs are hybrid quantum–classical classifiers that encode classical data into quantum states using programmable unitary gates.
- They integrate flexible encoding strategies and variational ansätze to optimize performance on tasks from accelerator physics to medical imaging.
- Robust training leverages classical optimizers and parameter-shift updates, achieving competitive accuracy and resilience against noise.
Searching arXiv for recent and foundational papers on gate-based variational quantum classifiers. {"query":"gate-based variational quantum classifier arXiv (Yin et al., 7 Jun 2025, Chen et al., 15 May 2026, Lin et al., 2024, Miyahara et al., 2021)", "max_results": 10} {"query":"Variational Quantum Classifier gate-based arXiv amplitude encoding angle encoding strongly entangling layer", "max_results": 10} A gate-based variational quantum classifier (VQC) is a hybrid quantum–classical supervised learning model in which classical inputs are encoded into quantum states, transformed by a parameterized unitary circuit, and measured to produce classical predictions. In the gate-model formulation, the classifier is organized around an encoding map, a trainable ansatz, and a measurement or post-processing rule; the variational parameters are optimized by a classical routine against a task-specific loss. Across recent work, gate-based VQCs appear in superconducting, photonic, and hybrid deep-feature pipelines, and have been applied to accelerator physics, medical-image representation learning, astrophysical classification, high-energy physics analysis, and standard benchmark datasets (Yin et al., 7 Jun 2025, Chen et al., 15 May 2026, Lin et al., 2024, Wu et al., 2020).
1. Core formalism and classifier definition
In a standard gate-based VQC, the encoded quantum state is written as
where is the data-encoding block, is the trainable variational circuit, and denotes adjustable parameters learned during training. This decomposition is stated explicitly in the accelerator-physics application and is representative of the gate-based formulation more generally (Yin et al., 7 Jun 2025).
A broader formalization describes the pipeline as
followed by observable expectations and a classical prediction function,
Training is then posed as constrained optimization over a unitary operator,
This formulation is used to argue that ansatz-based quantum circuit learning is a restricted instance of a wider VQC design space (Miyahara et al., 2021).
The same architectural logic persists in application-specific variants. In one hybrid medical-imaging model, a pretrained ResNet-18 produces a 512-dimensional representation , a classical pre-encoding layer reshapes it, amplitude encoding maps it into a 9-qubit state, a Strongly Entangling Layer acts on the state, Pauli- expectations are measured, and a classical linear head produces logits (Chen et al., 15 May 2026). In a tensor-network hybrid, a matrix product state compresses image inputs before a VQC back end performs the classification, with both parts trained simultaneously (Chen et al., 2021).
This body of work establishes gate-based VQCs as a family rather than a single architecture. A plausible implication is that the defining property is not a fixed circuit template, but the use of programmable unitary gates within a hybrid optimization loop.
2. Encoding strategies and feature representations
Data encoding is the first major design axis. Two encodings are explicitly compared in the accelerator-physics study: amplitude encoding and angle encoding. In amplitude encoding,
0
while in angle encoding each feature is mapped to a rotation gate; the implemented circuit uses 1 gates,
2
with encoded state
3
Angle encoding requires at least 4 qubits for 5 features, whereas amplitude encoding needs only 6 qubits in principle (Yin et al., 7 Jun 2025).
The same compression motive underlies several other constructions. The SAFE-oriented medical model amplitude-encodes standardized 512-dimensional ResNet-18 features into 9 qubits, after a learnable linear transformation followed by GELU. The paper argues that this pre-layer is necessary because amplitude encoding can distort geometry, and reports worse performance and unstable training when it is removed (Chen et al., 15 May 2026). In the HTRU-2 pulsar study, by contrast, the feature maps are angle-embedding circuits; the eight numerical features are normalized with MinMaxScaler to 7, and the number of qubits equals the number of selected features (Souza et al., 21 May 2025).
Discrete-feature encoding is treated separately in work on trainable embeddings based on Quantum Random Access Coding (QRAC). There, fixed QRAC compression is replaced by a trainable embedding, such as a single-qubit gate
8
with Bloch vector
9
The purpose is to preserve QRAC-style qubit efficiency while overcoming fixed-geometry limitations on hard Boolean functions (Thumwanit et al., 2021).
Feature extraction can also be delegated to a classical front end. The end-to-end tensor-network classifier uses a matrix product state as a trainable compressor for flattened 0 images before quantum classification (Chen et al., 2021). The medical-imaging pipeline uses a pretrained ResNet-18 whose last fully connected layer is replaced by an identity map, thereby exposing the full 512-dimensional feature vector to the hybrid quantum stage (Chen et al., 15 May 2026). In accelerator physics, the feature set is task-specific: the simple dataset uses 1 at the end point of the last cell, while the complex dataset uses the same quantities at the end points of the first, fifth, and last cells, yielding 12 features (Yin et al., 7 Jun 2025).
A recurrent misconception is that gate-based VQCs necessarily consume raw low-dimensional inputs. The reported implementations show instead that they often operate on engineered, compressed, or pretrained representations.
3. Variational ansätze, circuit realizations, and readout rules
The trainable circuit is typically a layered unitary ansatz. In the accelerator-physics study, the variational block is
2
with repeated strongly entangled layers. Each layer contains generic single-qubit rotations with three angles and a circular chain of CNOT gates. The one-qubit rotation is
3
The authors select three strongly entangled layers for later experiments because increasing the number of layers from 1 to 7 improves accuracy but the gain slows significantly after 2 layers (Yin et al., 7 Jun 2025).
Photonic implementations realize the same variational principle in hardware-native form. One silicon photonic VQC uses a four-mode interferometer network with six Mach–Zehnder interferometers, and the ansatz is
4
Each MZI acts as a programmable two-mode gate controlled by phase-shifter voltages (Lin et al., 2024). A separate gate-based photonic quantum neural network implements two-parameter and six-parameter two-qubit circuits using dual-rail qubits, single-qubit rotations, and one CNOT gate (McKiernan et al., 11 May 2026).
Readout varies with the architecture:
| Implementation | Variational block | Readout |
|---|---|---|
| WHPS dynamic-aperture VQC | Strongly entangled layers with single-qubit rotations and circular CNOT chain | First qubit; threshold 5 at 6 |
| SAFE hybrid VQC | Single Strongly Entangling Layer on 9 qubits | Pauli-7 expectation on each qubit, then linear head |
| Photonic microprocessor VQC | Six programmable MZIs in a 4-mode network | Highest photon measurement outcome / output intensity |
| Single-qudit classifier | General 8 unitary | Most probable outcome under 9 measurement |
In the WHPS classifier, the decision rule is
0
(Yin et al., 7 Jun 2025). In the SAFE model, the measured quantum features satisfy
1
after which the classical head computes logits 2 and softmax determines the predicted class (Chen et al., 15 May 2026). In the photonic microprocessor, “the highest photon measurement outcome is used to determine the label of each sample” (Lin et al., 2024). In the single-qudit classifier, the predicted label is the class whose measurement outcome is most probable (Adhikary et al., 2019).
This diversity of readout rules shows that gate-based VQCs are not restricted to a single binary-threshold mechanism; the common element is measurement-based inference after unitary evolution.
4. Loss functions, optimizers, and hybrid training regimes
The most common objective is cross-entropy. For dynamic-aperture classification, the loss is binary cross-entropy,
3
optimized with COBYLA because it is gradient-free and requires only one loss evaluation per iteration (Yin et al., 7 Jun 2025). The SAFE hybrid model uses categorical cross-entropy,
4
trained end-to-end with Adam, learning rate 5, batch size 6, and 20 epochs; gradients are computed through automatic differentiation in the classical computation graph rather than parameter-shift rules (Chen et al., 15 May 2026).
Other training loops are explicitly hardware-oriented. The LHC analysis uses SPSA, chosen because it is practical for noisy quantum hardware and requires relatively few function evaluations per iteration (Wu et al., 2020). The Qiskit pulsar study employs qiskit_machine_learning.algorithms.VQC with the default cross-entropy loss and the SLSQP optimizer (Souza et al., 21 May 2025). The photonic microprocessor closes the loop with a gradient-free genetic algorithm minimizing
7
over candidate parameter vectors 8, with training terminated after 100 generations (Lin et al., 2024).
End-to-end differentiation appears in hybrid classical–quantum architectures. In the tensor-network/VQC model, matrix-product-state parameters 9 and quantum parameters 0 are optimized jointly; the quantum gradients are computed with the parameter-shift rule,
1
Reported training procedures also emphasize resource constraints. In the WHPS simulator, VQC runs used 1024 measurement shots; for the depth study the maximum iteration count was 1000, and for the final comparison on the complex dataset it was 3000 (Yin et al., 7 Jun 2025). In the LHC hardware study, 500 training iterations on 100 events took about 200 hours (Wu et al., 2020). This supports a recurring practical point: optimization method selection in gate-based VQCs is closely tied to simulator cost, shot noise, and backend access.
5. Empirical domains and reported results
Gate-based VQCs have been evaluated on both benchmark and domain-specific tasks.
| Domain | Configuration | Reported outcome |
|---|---|---|
| Accelerator physics | WHPS DA boundary classification | 2 VQC vs 3 ANN at 2000 training samples |
| Pulsar classification | HTRU-2, 3 features, ZZ feature map, EfficientSU2, circular entanglement | Accuracy 4 |
| Photonic nonlinear tasks | Square / circular / sine boundaries | Experimental accuracies 5, 6, 7 |
| LHC analyses | 8 and 9 with 10 qubits | AUC 0 and 1 on simulator |
| Photonic QNN | XOR with two-parameter QNN | Loss 2, accuracy 3 |
In accelerator physics, the gate-based VQC is used as a surrogate for expensive long-term accelerator tracking. The classifier learns whether short-term trajectories imply long-term survival or loss, and the dynamic aperture boundary is reconstructed from the separation between predicted surviving and lost particles. On the complex dataset, accuracy improves with training-sample count for both VQC and ANN, but the VQC converges faster; for fewer than 500 training samples, angle-encoding VQC outperforms ANN, and at 2000 training samples the reported accuracies are 4 for VQC versus 5 for ANN (Yin et al., 7 Jun 2025).
In the HTRU-2 pulsar problem, performance depends strongly on feature selection, qubit count, and circuit configuration. The best reported accuracy is 6, obtained with 3 features, 180 training samples, FS1, the ZZ feature map, the EfficientSU2 ansatz, and circular entanglement. The strongest MCC is 7, achieved with 3 features, 300 training samples, FS2, the ZZ feature map, EfficientSU2, and full entanglement; this configuration has accuracy 8, precision 9, recall 0, and F1-score 1 (Souza et al., 21 May 2025).
On a programmable silicon photonic microprocessor, simulation accuracies on three synthetic binary tasks are 2, 3, and 4 for square, circular, and sine decision boundaries, respectively, while experimental accuracies are 5, 6, and 7. On the real-world Iris dataset, the paper reports 8 in the abstract and a hardware testing accuracy of 9 on 30 testing samples in the detailed description (Lin et al., 2024). In a separate photonic QNN study, the two-parameter QNN solves XOR with 0 accuracy while the matched-parameter ANN saturates near random guessing; on a two-class Iris subset, the smaller QNN achieves mean converged loss around 1 (McKiernan et al., 11 May 2026).
High-energy-physics applications use realistic signal–background discrimination tasks. With 10 qubits and 100 training events per dataset, the VQC reaches AUC 2 on 3 and 4 on 5, comparable to SVM and BDT baselines. Hardware AUCs of 6 on ibmq_boeblingen and 7 on ibmq_paris are reported for representative datasets (Wu et al., 2020).
Hybrid front ends also show competitive benchmark performance. The end-to-end MPS-VQC reaches around 8 test accuracy on Fashion-MNIST class 5 vs 7 with 9, and with 0 exceeds 1 on MNIST ternary classification and reaches about 2 on Fashion-MNIST ternary classification (Chen et al., 2021). Trainable discrete embeddings further improve compact discrete-data classification; for example, on 6-bit parity TE achieves 3 using only 2 qubits, and Conv 4-TE reaches 5 test accuracy on MNIST with only 9 qubits (Thumwanit et al., 2021).
Taken together, these studies support the narrower claim that gate-based VQCs are already viable as small-data or resource-constrained classifiers in several application domains. They do not, by themselves, establish a universal advantage over classical methods.
6. Expressivity, robustness, and recurrent points of debate
Three recurrent themes structure the present literature: expressivity, stability under noise, and the role of architectural constraints.
First, more parameters or more depth do not automatically imply better performance. In the WHPS study, increasing the number of strongly entangled layers improves accuracy, but gains slow significantly after 2 layers (Yin et al., 7 Jun 2025). In the photonic QNN study, the normalized effective dimensions are 6 for the 2-parameter QNN and 7 for the matched 2-parameter ANN, while the 6-parameter QNN has only about 8 advantage over the 6-parameter ANN; the authors explicitly argue that expressivity, not parameter count alone, determines performance (McKiernan et al., 11 May 2026). A related ansatz critique is made in the ansatz-independent VQC paper, which shows that quantum circuit learning is a restricted instance of a kernel-like framework and claims that QCL performance is bounded above by the unitary kernel method (Miyahara et al., 2021).
Second, robustness claims are increasingly tied to structure. The SAFE hybrid model argues that normalized amplitude embedding, unitary evolution, and bounded Pauli-9 readout induce a structured and smooth hypothesis class. The paper states norm preservation,
0
bounded observable outputs 1, and gradient norm control 2, and evaluates reliability with SAFE-AI metrics derived from Cramér–von Mises divergence, including RGA, RGR, RGE and their areas under curves (Chen et al., 15 May 2026). This suggests a stability-oriented reading of some VQC architectures, although the evidence is task-specific.
Third, noise studies generally report degradation rather than collapse. In the accelerator-physics application, realistic NISQ noise is emulated with Qiskit-Aer using IBM noise models ibmq_lima, ibmq_belem, and ibm_lagos. With angle encoding, 3 strongly entangled layers, 1000 training samples, COBYLA, and 1000 iterations, the accuracies are 3 with no noise, 4 for ibmq_lima, 5 for ibmq_belem, and 6 for ibm_lagos; the conclusion is that noise causes only slight degradation because moderate probability shifts often do not change the thresholded decision label (Yin et al., 7 Jun 2025). The photonic QNN likewise studies photon loss, phase-shifter imprecision, and finite-shot effects, reporting that beyond roughly 100 shots loss drops and accuracy improves substantially, and using 7 shots per iteration in later runs (McKiernan et al., 11 May 2026).
Several controversies or common confusions are addressed directly in the literature. Reusing the same circuit family as both feature map and ansatz can harm overall effectiveness: on HTRU-2, using ZZ or Pauli feature maps as both feature map and ansatz gives poor overall performance, even when precision can be higher than average (Souza et al., 21 May 2025). “Gate-based” also does not imply qubit-only digital circuits in the narrow superconducting sense: photonic mode architectures built from MZIs or dual-rail qubits are described as gate-based when they emulate the standard circuit model (Lin et al., 2024, McKiernan et al., 11 May 2026). Conversely, pulse-level variational quantum pulse learning is explicitly characterized as distinct from gate-based VQC, even though it is inspired by it and can outperform a baseline VQC in the reported binary-classification experiments (Liang et al., 2022).
The current record therefore presents gate-based VQCs as a technically heterogeneous class of hybrid classifiers with demonstrable utility, nontrivial expressivity, and moderate reported robustness, but also with clear dependence on encoding choice, ansatz design, optimizer behavior, qubit or mode budget, and hardware noise.