# qml.devices.default_gaussian.set_state¶

set_state(state, wire, mu, cov)[source]

Inserts a single mode Gaussian into the state representation of the complete system.

Parameters
• state (tuple) – contains means vector and covariance matrix of existing state

• wire (Wires) – wire corresponding to the new Gaussian state

• mu (array) – vector of means to insert

• cov (array) – covariance matrix to insert

Returns

contains the vector of means and covariance matrix.

Return type

tuple