A hybrid AI-quantum experiment is only useful when its quantum component is compared with a credible classical alternative. This checklist explains how to prepare data, define equivalent models, control training and inference conditions, measure resource use, and decide whether an observed improvement is meaningful rather than an artifact of leakage, tuning, noise, or inconsistent evaluation.
Overview
A hybrid quantum machine learning workflow usually combines classical data processing and optimization with a parameterized quantum circuit. A classical model may preprocess features, a quantum circuit may produce an embedding or expectation values, and a classical optimizer may update circuit parameters. This arrangement can be tested with tools such as Qiskit, Cirq, PennyLane, or another compatible framework, but the framework is not the experiment. The experiment is the complete, reproducible comparison.
The central question is not simply whether a circuit produces a higher score. It is whether the quantum approach improves a defined objective under comparable data, tuning effort, computational budget, and deployment conditions. A fair test therefore starts with a classical baseline that is appropriate for the dataset and task. It also records costs that accuracy alone hides: preprocessing time, circuit evaluations, simulator or hardware runtime, qubit count, gate count, circuit depth, shots, queue delays, and failed or repeated jobs.
Before implementation, write down the claim being tested. For example: “With this feature representation and training budget, the hybrid model reaches a target classification score with fewer learned parameters,” or “The quantum layer changes performance under a fixed inference budget.” A narrow, testable claim is easier to evaluate than a broad statement about quantum advantage.
For background, use the hybrid AI-quantum workflows guide alongside the comparison of quantum data encoding methods. These provide useful context before selecting a circuit architecture.
Checklist by scenario
1. Preparing a new dataset
- Define the prediction task, target variable, acceptable error, and evaluation metric before inspecting test results.
- Separate training, validation, and test data before fitting scalers, imputers, feature selectors, embeddings, or other transformations.
- Check class balance, duplicate records, time ordering, group structure, missing values, and possible target leakage.
- Reduce the feature space deliberately if the circuit can only encode a limited number of inputs. Record which features were removed and why.
- Choose an encoding method that matches the data. Basis, amplitude, angle, and feature-map approaches have different normalization, circuit-size, and execution implications.
Fit every learned preprocessing step on the training partition only. If an embedding model, vocabulary, normalization range, or feature-selection rule sees the test set, the final comparison is no longer clean.
2. Choosing a classical baseline
Start with at least one simple reference model and one stronger conventional model. A baseline should be plausible for the task, not intentionally weak. For a small tabular classification problem, a regularized linear classifier can establish a transparent lower-complexity reference, while a tree-based model or compact neural network can test whether the quantum model beats a more flexible alternative. For regression, compare against a mean predictor, a regularized linear model, and a suitable nonlinear model where practical.
| Baseline | Use it to answer | Record |
|---|---|---|
| Simple reference | Does the proposed model learn more than a basic rule? | Metric, preprocessing, parameter count |
| Regularized linear model | Does nonlinear or quantum processing add value? | Regularization, solver, training budget |
| Nonlinear classical model | Does the quantum component compete with a practical alternative? | Architecture, tuning trials, runtime |
| Hybrid quantum model | What changes when the quantum layer is introduced? | Qubits, depth, shots, circuit evaluations, optimizer |
Keep the data pipeline, splits, target encoding, and scoring code identical wherever possible. If the classical model receives engineered features that the quantum model does not, or if the quantum model receives a privileged preprocessing step, label the comparison as asymmetric.
3. Building the quantum and hybrid variants
- Choose the number of qubits based on the encoded feature representation, not on an arbitrary target.
- Document the circuit template, trainable gates, entanglement pattern, measurement observables, initialization, and output post-processing.
- Define whether the circuit runs on an ideal simulator, a noisy simulator, or hardware. Do not combine results from these settings without clearly separating them.
- Use the same train, validation, and test partitions as the classical baselines.
- Keep the optimizer, stopping rule, maximum number of circuit evaluations, and random-seed policy explicit.
A fair comparison does not require identical parameter counts in every study, but it does require reporting them. A model with fewer parameters may still consume more wall-clock time because each update requires many circuit executions. Conversely, a simulator can make a circuit appear inexpensive while hiding hardware access, sampling, or queue costs.
4. Running inference and evaluation
Freeze model parameters after training. Run test inference once under the declared conditions, or use a predefined number of repeated runs when sampling noise is part of the question. Report the same primary metric for every model and include uncertainty where repeated seeds, folds, or hardware executions make it relevant.
For classification, select metrics according to the decision problem. Accuracy can be misleading with imbalanced classes; consider precision, recall, F1, balanced accuracy, log loss, or area under a relevant curve. For regression, choose a metric such as mean absolute error or root mean squared error based on the cost of errors. Add calibration or confusion-matrix analysis when predictions drive thresholds or operational decisions. Do not choose a favorable metric after viewing the results.
What to double-check
Experiment configuration template
Store a machine-readable configuration with every run. The following fields are a practical minimum:
task: classification
dataset_version: name-or-hash
split: train-validation-test
preprocessing: scaler-and-feature-selection
encoding: method-and-parameter-range
classical_model: name-and-version
quantum_model: circuit-template
qubits: count
trainable_parameters: count
optimizer: name-and-settings
seeds: list
max_training_evaluations: count
backend: simulator-or-hardware
shots: count-or-not-applicable
noise_model: name-or-none
primary_metric: defined-metric
secondary_metrics: list
runtime_scope: preprocessing-training-inference
stopping_rule: definitionMetric and resource checklist
- Predictive quality: Were metrics selected before the final test was opened?
- Uncertainty: Are results stable across seeds, folds, or repeated hardware runs?
- Data efficiency: Does the conclusion hold when training-set size changes?
- Parameter count: Are classical and quantum trainable parameters reported separately?
- Execution cost: Are circuit evaluations, shots, depth, gates, qubits, and wall-clock time recorded?
- Reproducibility: Can another developer recreate the environment, dataset split, configuration, and post-processing?
- Hardware realism: If hardware is used, are queue time, failed jobs, calibration conditions, noise, and mitigation settings documented?
For resource accounting, see the quantum resource estimation guide and the job submission checklist. If results change substantially between ideal simulation and hardware, treat that difference as a finding to investigate, not as an inconvenience to hide.
Common mistakes
- Using a weak straw-man baseline: A quantum model should be compared with reasonable classical methods, including a tuned version where the study makes performance claims.
- Tuning on the test set: Repeatedly checking test scores turns the test set into part of training. Keep a final holdout or use a declared cross-validation protocol.
- Comparing unequal budgets: Ten quantum trials and hundreds of classical hyperparameter trials do not represent equal search effort. Report the difference or define a budget in advance.
- Ignoring sampling: Shot noise can affect both outputs and optimization. State the shot count and whether it changes between training and inference.
- Reporting only accuracy: A small score difference may be irrelevant if runtime, variance, or operational error costs are worse.
- Changing preprocessing silently: Different scaling, feature selection, or label handling can explain an apparent model improvement.
- Confusing fewer parameters with lower cost: Circuit depth, repeated evaluations, shots, and backend access may dominate the total workload.
- Overstating advantage: A result on one small dataset is evidence about that experiment, not proof of general quantum advantage.
When debugging implementation differences, consult the quantum circuit debugging checklist. For framework changes, use the SDK API migration checklist and record package versions in the run configuration.
When to revisit
Revisit this evaluation loop before a new planning or reporting cycle, whenever the dataset changes, and whenever a classical or quantum model is replaced. Repeat the review after changing the encoding method, optimizer, circuit depth, shot count, backend, noise model, error-mitigation method, or stopping rule. Framework and hardware APIs also evolve, so rerun a small regression test after major SDK or platform updates rather than assuming old results remain comparable.
A practical refresh sequence is:
- Freeze the previous configuration and preserve its outputs.
- Update the dataset, framework, backend, or model in a separate experiment version.
- Recheck preprocessing and leakage controls before training.
- Run the simple and strong classical baselines again if the data or metric changed.
- Repeat the quantum experiment under matched splits and declared budgets.
- Compare quality, uncertainty, parameter counts, circuit resources, and total runtime.
- Write a conclusion limited to the tested conditions and record what should be tested next.
The most useful outcome may be that the quantum component improves a specific metric, clarifies a bottleneck, or fails to justify its additional cost. Each result becomes more valuable when the baseline, evaluation loop, and resource accounting make the comparison understandable and repeatable.