qml.devices.default_gaussian.thermal_state

thermal_state(nbar, hbar=2.0)[source]

Returns a thermal state.

Parameters
  • nbar (float) – the mean photon number

  • hbar (float) – (default 2) the value of \(\hbar\) in the commutation relation \([\x,\p]=i\hbar\)

Returns

the thermal state

Return type

array

Contents

Using PennyLane

Development

API

Internals