Scientific Workflow for QML

Intermediate Quantum ML Methodology
Created by Pavel · 11.03.2026 at 14:32 UTC

Treat a QML project like an experiment: fix the task, metric, and classical baseline before touching circuits. Then pin shots, seeds, and splits so variance is interpretable rather than mysterious.

The failure mode is retrofitting a story after a lucky run—without uncertainty and resource accounting, neither you nor a reviewer can tell signal from noise. References: [1], [2].


Sources

University approvals: 0
Tasks
Question 1

Which step should come first in a disciplined QML experiment?

Hint

Scientific framing before implementation.

Question 2

If your objective is expectation-based, you usually prefer which primitive?

Hint

Observable average primitive.

Question 3

Why is reporting variance/uncertainty important in shot-based experiments?

Hint

Sampling noise.

Question 4

Name one anti-pattern discouraged in Lectures 1-3 style methodology.

Hint

Think over-claiming.

Question 5

A high-quality QML report should ideally include:

Hint

Full experimental context.

Question 6

A model has mean accuracy 0.81 with sample standard deviation 0.04 over 16 runs. What is the standard error of the mean?

Hint

$SE = s / \sqrt{n}$.

Question 7

A result shows +1.5% accuracy but uncertainty interval overlaps zero improvement. Best conclusion?

Hint

Distinguish effect size from statistical confidence.

Question 8

Which reporting practice most improves reproducibility of QML experiments?

Hint

Reproducibility requires protocol transparency.

Question 9

Implement standard_error_mean(sample_std: float, n_runs: int) -> float as $s/\sqrt{n}$ for n_runs >= 1. Raise ValueError if n_runs < 1 or sample_std < 0.

Hint

math.sqrt for the denominator.

Starter code is prefilled; replace TODO blocks with your solution.
2 test cases will be used for grading
Run checks runtime behavior only. Final correctness is evaluated when you submit.
Card Info
  • Topic: Quantum ML Methodology
  • Difficulty: Intermediate
  • Completed: 0 users
Creator
Pavel
Pavel