FockState

Module: pennylane

class FockState(n, wires)[source]

Prepares a single Fock state.

Details:

  • Number of wires: 1
  • Number of parameters: 1
  • Gradient recipe: None (not differentiable)
Parameters:
  • n (int) – Fock state to prepare
  • wires (Sequence[int] or int) – the wire the operation acts on