qml.devices.default_gaussian.squeezed_cov

squeezed_cov(r, phi, hbar=2)[source]

Returns the squeezed covariance matrix of a squeezed state.

Parameters
  • r (float) – the squeezing magnitude

  • p (float) – the squeezing phase \(\phi\)

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

Returns

the squeezed state

Return type

array

Contents

Using PennyLane

Development

API