Preparing the catalog and filters…Katalog ve filtreler hazırlanıyor…
Starter code
module encoding_lab;
@dataset("xor_2d", split: "train");
fn main() {
let q: QReg<2> = qreg[2];
encode(sample_row(1), q, method: "angle");
let result = expect Z(q[0]) Z(q[1]);
return result;
}Expected output
The angle map consumes xor_2d row 1
The trace identifies the encoding method
The ZZ expectation is finite and reproducible
Debugging checklist
Run the angle starter
Switch method to iqp and compare the trace
Try amplitude as the first register operation
Explain the 2^n amplitude capacity
Extension challenge
Add a four-feature row and determine the smallest amplitude register that can hold it.