FockStateVector

Module: pennylane

class FockStateVector(state, wires)[source]

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

Details:

  • Number of wires: Any
  • Number of parameters: 1
  • Gradient recipe: None (uses finite difference)
Parameters:state (array) – a single ket vector, for single mode state preparation, or a multimode ket, with one array dimension per mode