HadamardAngleEmbedding#
- class pyqit.core.embeddings.HadamardAngleEmbedding(n_qubits: int)[source]#
Bases:
BaseEmbeddingThe encoding of Mari et al. (2020): a Hadamard layer, then one RY per wire.
The Hadamards start every wire at
|+>, so an angle in[-pi/2, pi/2]covers the arc from|0>to|1>. Inputs are prescaled bypi / 2, which maps atanhlayer’s output onto that range, as in the paper.- Parameters:
n_qubits (int)
References
Mari, Bromley, Izaac, Schuld, Killoran, “Transfer learning in hybrid classical-quantum neural networks”, Quantum 4, 340 (2020).