FockDensityMatrix

Module: pennylane

class FockDensityMatrix(state, wires)[source]

Prepare subsystems using the given density matrix in the Fock basis.

Details:

  • Number of wires: Any
  • Number of parameters: 1
  • Gradient recipe: None (uses finite difference)
Parameters:state (array) – a single mode matrix \(\rho_{ij}\), or a multimode tensor \(\rho_{ij,kl,\dots,mn}\), with two indices per mode