qml.estimator.templates.BasisEmbedding¶
- class BasisEmbedding(num_wires, wires=None)[source]
Bases:
BasisStateResource class for preparing a single basis state, as an embedding. Mirrors
BasisEmbedding, which inherits fromBasisStatebut is otherwise identical to it.- Parameters:
num_wires (int) – number of wires the operator acts on
wires (WiresLike, Optional) – the wire(s) the operation acts on
code/api/pennylane.estimator.templates.BasisEmbedding
Download Python script
Download Notebook
View on GitHub