Entangling blocks in feature maps

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

Product encodings keep qubits nearly independent; entangling layers mix them so similarity can depend on joint features—think classical lifts that add $x_1 x_2$. ZZ-style couplings are the circuit analogue.

Entanglement reshapes the hypothesis space; it does not, by itself, guarantee better test error.

University approvals: 0
Tasks
Question 1

What is the main purpose of adding an entangling block to a quantum feature map?

Hint

Focus on interactions between features.

Question 2

In a ZZ-style feature map, which two-qubit operator appears in the interaction block?

Hint

Use the Pauli observable mentioned in the lecture.

Question 3

What is the closest classical parallel to an entangling feature block that makes the kernel sensitive to joint feature effects?

Hint

Think of the nonlinear lift from the previous lecture.

Question 4

Which statement best contrasts product encoding with entangling encoding?

Hint

Compare what kinds of geometric dependence each construction can express.

Question 5

Implement classical_interaction_lift(x1: float, x2: float) -> float returning $x_1 \cdot x_2$. Raise TypeError if either arg is not int or float.

Hint

isinstance(x, (int, float))

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