qml.devices.default_gaussian.set_state¶
- set_state(state, wire, cov, mu)[source]¶
Inserts a single mode Gaussian into the state representation of the complete system.
- Parameters
state (tuple) – contains covariance matrix and means vector of existing state
wire (Wires) – wire corresponding to the new Gaussian state
cov (array) – covariance matrix to insert
mu (array) – vector of means to insert
- Returns
contains the vector of means and covariance matrix.
- Return type
tuple
code/api/pennylane.devices.default_gaussian.set_state
Download Python script
Download Notebook
View on GitHub