Using PennyLane
Development
API
Internals
thermal_state
Returns a thermal state.
nbar (float) – the mean photon number
hbar (float) – (default 2) the value of \(\hbar\) in the commutation relation \([\x,\p]=i\hbar\)
the thermal state
array