Quantum Machine Learning for Finance: A Hands-on Comparison of Classical and Quantum Approaches

Quantum Machine Learning for Finance: A Hands-on Comparison of Classical and Quantum Approaches

🎙 Hastika Cheddy (Qubithub) 👥 142 📅 November 26, 2026 ⏱ 55 min 👁 5 📄 tutorial 🧭 2026-11-26
Available in: English (current) Français

Keywords

variational quantum classifierlogistic regression baselinebank marketing datasetbootstrap confidence intervalclass imbalance

Summary

Recorded at a Qiskit Fall Fest 2026 session, this 55-minute workshop by machine learning engineer and Qiskit Advocate Hastika Cheddy poses a single financial question — will a bank client subscribe to a term deposit after a telemarketing call — and answers it twice under identical experimental rules. The data is the UCI Bank Marketing table: 41,188 rows, 20 input columns and roughly 11% positive outcomes, an imbalance deliberately kept because it makes plain accuracy misleading. The protocol is fixed before any result is seen: the call-duration column is dropped as target leakage, exact duplicate rows are removed, one stratified 75/25 split with a fixed seed is drawn, the test set is sealed, and all preprocessing is fitted on training rows only. Model A is a class-weighted logistic regression tuned by five-fold cross-validation, with its decision threshold selected on held-out training data to maximise F1. Model B is a four-qubit variational quantum classifier in Qiskit: PCA compresses 63 engineered features to four, angle encoding loads them, a rotation-plus-CNOT-ring ansatz supplies 24 trainable angles, and a gradient-free COBYLA optimiser minimises a class-weighted cross-entropy. Because circuit simulation costs scale with rows times iterations, the quantum model trains on 2,000 clients, so the speaker builds a matched classical logistic regression on the same 2,000 rows and the same four components to separate model-family effects from information-budget effects. Headline numbers: full logistic regression ROC AUC near 0.82, matched logistic near 0.73, quantum circuit near 0.776. Bootstrap intervals and paired-bootstrap comparisons put the quantum model slightly ahead of its matched control (+0.012 AUC, interval excluding zero) and clearly behind the full classical model (−0.026). The speaker concludes that the information budget matters roughly three times more than the model family, that the family gap is small and fragile — it fell to +0.006 and included zero on a different machine — and that nothing demonstrated here is quantum advantage. She then enumerates what the experiment does not show: no hardware, no noise, no finite shots, no generalisation beyond one split, and no attribution of any gain to anything genuinely quantum. The closing question-and-answer session is brisk and, on several technical points, evasive.

357 words

Critical Evaluation

Value of the Information & Strength of the Argument

The informational yield is high for the format because almost every claim is attached to a number produced live by the notebook rather than quoted from the literature: 41,188 rows and 20 columns, an 11.3% positive class, 63 engineered features compressed to four components, 24 trainable angles across four qubits and two layers, 2,000 training clients, 1,500 validation clients, at most 300 optimiser evaluations, 10,294 test clients and 300 bootstrap resamples. The argumentative architecture is the strongest element. The rules are stated before any result is visible, so the audience cannot suspect post-hoc tuning; the majority-class model is kept in every table as a permanent reminder that 87–88% accuracy corresponds to zero recall; threshold-free (ROC AUC) and threshold-dependent (F1) metrics are explicitly distinguished and their blind spots named; and two comparisons that are usually conflated are carefully separated — quantum against a matched classical control of identical size, features and tuning, which probes the model family, and quantum against the full classical model, which probes the information budget. The base rate statement that the budget matters roughly three times more than the family follows from that decomposition, and the speaker volunteers the inconvenient replicate in which the family gap shrank to +0.006 and its interval included zero, then declines to build a narrative on it. The same discipline appears in the closing inventory of limitations: simulated exact statevector, no shot noise, no hardware, no generalisation beyond one split, and no way to attribute the gap to anything specifically quantum rather than to capacity or optimiser budget. The weaknesses are localised rather than structural. The three-to-one ratio is drawn from a single split of a single dataset yet delivered with more assurance than a one-dataset experiment can carry, and the intervals are correctly noted to cover only sampling of test clients, not machine or seed variability — a caveat that also undercuts the confident reading of the ratio itself. The claim that some quantum models define functions believed to be hard to evaluate classically is asserted without reference, and speed-up prospects are compressed into a single sentence about linear algebra under assumptions that rarely hold, which is honest but thin. The circuit-size and ansatz choices are fixed without justification beyond convention. Most damaging to the overall argumentative standard is the question-and-answer block: encoding choice and circuit architecture are answered with ‘it depends, do your research’, quantum kernel methods with ‘I have never done it’, hardware noise with an explicit refusal to answer, fairness of the comparison with ‘I would not say it is fair or unfair’, and fraud detection is recommended over other financial tasks on grounds that are asserted rather than argued. The presentation is rigorous; the discussion after it is not.

Scientific Rigor, Source Quality, Title Accuracy

On scientific rigour, the design choices are close to a checklist of best practice for comparative machine-learning claims: removal of a known leakage column, deduplication before splitting, a single pre-registered split with a sealed test set, all preprocessing and all hyperparameter choices confined to training data, a decision threshold tuned on a validation slice rather than inherited from 0.5, class weighting to prevent the minority class from being ignored, a control matched on rows, features and tuning so that the family comparison is not contaminated by the information budget, and uncertainty quantified by bootstrap and paired bootstrap rather than by point estimates alone. The explicit refusal to claim quantum advantage from an exactly simulated four-qubit circuit is the correct conclusion and is stated without hedging. On source quality, however, the talk is bare: no bibliography, no citation of any paper, and no reference links in the description. The only named external resources are the UCI Bank Marketing repository, scikit-learn, Qiskit and the COBYLA optimiser, the latter mentioned only as ’needs no gradients’. The propositions about circuit expressivity and about speed-ups in linear algebra are presented as general knowledge without attribution, and the notebook itself, which would be the primary artefact, is referenced only as a link shared in the chat. On title-versus-content fit, the match is strong: the video delivers a hands-on Python and Qiskit demonstration and a comparison of one classical and one quantum classifier under shared conditions, with predictive performance, computational considerations and practical limitations all addressed as announced.

718 words

Title / Content Match

The title is met almost literally: a genuine hands-on notebook workshop followed by a like-for-like comparison of a logistic regression and a variational quantum classifier, with an explicit non-advantage verdict. The only nuance is that 'hands-on' here means guided fill-in-the-function exercises rather than independent implementation.

Quality & Reliability

7/10

The experimental protocol is exemplary for a public talk: rules fixed before any result, target-leakage column removed, duplicates dropped, single stratified split with a sealed test set, preprocessing fitted on training rows only, thresholds chosen on a separate validation slice, a size- and information-matched classical control, bootstrap and paired-bootstrap intervals, and an explicit list of what the experiment cannot show. Deductions are limited accordingly and the replicate discrepancy on a second machine is volunteered. The score is held back by the absence of any bibliography or literature citation for the claims about expressivity and speed-ups, and by a question-and-answer segment whose answers are often vague, occasionally incoherent, and in one case a plain admission of not being able to answer.

Key Moments

Markers derived by PSI from the transcript: the creator did not define chapters.

Cited Sources

  • UCI Machine Learning Repository — Bank Marketing dataset — The Portuguese bank telemarketing dataset used throughout the workshop: 41,188 rows, 20 input columns, roughly 11% positive class, with the call-duration column discarded as target leakage.
  • scikit-learn — Named as the library providing the classical baseline (logistic regression), the preprocessing pipeline, the cross-validation and the reported metrics.
  • Qiskit — The quantum framework used to build and simulate the four-qubit variational circuit, installed at the start of the notebook session; the speaker is a Qiskit Advocate.
  • COBYLA optimiser — The gradient-free classical optimiser used to train the 24 circuit angles, capped at 300 evaluations; mentioned by name only, without citation.

Concurring Sources

Contribution & Novelties

The talk does not claim a research contribution; its value is methodological. It assembles, in a single reproducible notebook, a comparison design that the applied quantum machine learning literature often omits: pre-registered rules, a sealed test set, a threshold tuned away from 0.5, a matched classical control on identical rows and identical compressed features, and uncertainty quantified by both independent and paired bootstrapping. The most useful original element is the explicit decomposition of the observed gap into an information-budget component and a model-family component, with the resulting claim that the budget dominates by roughly a factor of three. Equally instructive is the self-reported fragility: the same code on a different machine moved the quantum metric by about 0.006, half the size of the gap under test, which is offered as a reason not to claim an advantage from either run. The negative result — a small, machine-dependent edge over a matched control, and a clear deficit against a full classical model — is a genuinely useful calibration point for anyone reading quantum-advantage claims in finance.

Pour aller plus loin :

338 words

Radar Profile

The profile is that of a carefully bounded technical demonstration: information quantity, technical level and reliability cluster in the upper-middle band, driven by concrete numbers and an unusually disciplined evaluation protocol, while nothing is pushed to the maximum because the scope is one dataset, one split and one simulated four-qubit circuit. The dip that would appear on a sources axis is the absence of any bibliography behind the theoretical claims, offset by a strong score on argumentative transparency.

Reliability 7/10