Kernels, baselines, and re-uploading

Advanced Quantum Machine Learning
Created by Pavel · 17.03.2026 at 07:05 UTC

Kernel methods live on similarities, so honest evaluation compares quantum kernels to strong classical kernels on the same split. Re-uploading feeds data through the circuit more than once, enlarging the effective feature map—but expressivity still needs a useful inductive bias.

The failure mode is celebrating a flexible map that only memorises noise.

University approvals: 0
Tasks
Question 1

Which statement is correct?

Hint

A kernel is a similarity measure, not necessarily a distance.

Question 2

Why can data re-uploading enrich a quantum model?

Hint

Think of the pattern: data, trainable transformation, data again.

Question 3

According to the implementation workflow, what should be done after computing pairwise quantum similarities $K_{ij}$?

Hint

The comparison should be fair and use the same data split.

Question 4

Which statement about re-uploading is the most accurate?

Hint

More expressive does not mean automatically better.

Question 5

Implement gram_upper_count(n: int) -> int returning the number of entries in the upper triangle of an $n\times n$ symmetric matrix including the diagonal ($i \le j$).

Hint

n*(n+1)//2

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: Advanced
  • Completed: 0 users
Creator
Pavel
Pavel