QubitStateVector

Module: pennylane

class QubitStateVector(state, wires)[source]

Prepare subsystems using the given ket vector in the computational basis.

Details:

  • Number of wires: All (applied to the entire system)
  • Number of parameters: 1
  • Gradient recipe: None
Parameters:
  • state (array[complex]) – a state vector of size 2**len(wires)
  • wires (Sequence[int] or int) – the wire(s) the operation acts on