qml.devices.default_gaussian.displacement¶
- displacement(state, wire, alpha, hbar=2)[source]¶
Displacement in the phase space.
- Parameters
state (tuple) – contains covariance matrix and means vector
wire (int) – wire that the displacement acts on
alpha (float) – complex displacement
- Returns
contains the covariance matrix and the vector of means
- Return type
tuple
code/api/pennylane.devices.default_gaussian.displacement
Download Python script
Download Notebook
View on GitHub