qml.estimator.templates.BasisEmbedding

class BasisEmbedding(num_wires, wires=None)[source]

Bases: BasisState

Resource class for preparing a single basis state, as an embedding. Mirrors BasisEmbedding, which inherits from BasisState but 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

Contents

Using PennyLane

Release news

Development

API

Internals