ThermalState

Module: pennylane

class ThermalState(nbar, wires)[source]

Prepares a thermal state.

Details:

  • Number of wires: 1
  • Number of parameters: 1
  • Gradient recipe: None (uses finite difference)
Parameters:
  • nbar (float) – mean thermal population of the mode
  • wires (Sequence[int] or int) – the wire the operation acts on