Loading [MathJax]/jax/output/HTML-CSS/jax.js

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 in the commutation relation [ˆx,ˆp]=i

Returns

the thermal state

Return type

array

Contents

Using PennyLane

Release news

Development

API

Internals