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
code/api/pennylane.devices.default_gaussian.squeezed_cov
Download Python script
Download Notebook
View on GitHub