qml.devices.default_gaussian.squeezed_state¶
- squeezed_state(r, phi, hbar=2.0)[source]¶
Returns a squeezed state.
- Parameters:
r (float) – the squeezing magnitude
phi (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_state
Download Python script
Download Notebook
View on GitHub