Hands-on lab · 1 step
Build the inversion test of an angle-encoding kernel
Build the compute–uncompute circuit of the two-qubit product encoding for and with gates only, and read the kernel value off the probability of the outcome .
0/1 step passedBest score 0/100
Step 1: Build U(x′)† U(x) for the R_X product encoding
The feature map encodes on two qubits with one rotation per qubit,
with feature on qubit (the most significant bit) and on qubit . Starting from , build the inversion test circuit
so that the probability of the outcome is the fidelity kernel . First prepare , then apply the inverse of the circuit that prepares .
How it is graded. Only gates are available, at most of them, on qubits. The grader simulates your circuit and compares, with absolute tolerance :
- check probabilities: the distribution of measuring both qubits;
- check p00: the expectation value of the projector , which equals .