QML Foundations: Why Quantum Machine Learning?

Beginner Quantum Machine Learning
Created by Pavel · 11.03.2026 at 14:32 UTC

Quantum machine learning is almost always hybrid: classical code optimizes parameters while a small quantum subroutine produces features or expectations. That split is not a compromise for beginners—it is how near-term devices participate in learning.

NISQ hardware is noisy; claims need classical baselines and honest resource counts. Orientation: [1], [2].


Sources

University approvals: 0
Tasks
Question 1

Which statement best matches the Lecture 1 view of QML in practice?

Hint

Think NISQ-era workflows.

Question 2

Why is a strong classical baseline mandatory in QML experiments?

Hint

Focus on scientific comparison.

Question 3

Which is NOT a core evaluation dimension for QML models?

Hint

One option is clearly irrelevant to model quality.

Question 4

What does NISQ stand for?

Hint

Noisy + intermediate scale.

Question 5

Qiskit and PennyLane are best described as:

Hint

They are software ecosystems for quantum workflows.

Question 6

A baseline model has accuracy 0.80 and your QML model has 0.84. What is the relative improvement percentage?

Hint

Compute (0.84 - 0.80) / 0.80.

Question 7

A QML model outperforms a weak baseline but matches a strong tuned classical baseline. What is the most defensible conclusion?

Hint

Scientific claims depend on strong comparator quality.

Question 8

Which experimental design best supports a reliable QML study?

Hint

Think reproducibility and fairness.

Question 9

Implement relative_improvement(baseline: float, model: float) -> float returning (model - baseline) / baseline. Raise ValueError if baseline == 0.

Hint

Guard zero baseline.

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 Machine Learning
  • Difficulty: Beginner
  • Completed: 0 users
Creator
Pavel
Pavel