# qml.devices.default_gaussian.gaussian_state¶

gaussian_state(cov, mu, hbar=2.0)[source]

Returns a Gaussian state.

This is simply a bare wrapper function, since the covariance matrix and means vector can be passed via the parameters unchanged.

Note that both the covariance and means vector matrix should be in $$(\x_1,\dots, \x_N, \p_1, \dots, \p_N)$$ ordering.

Parameters
• cov (array) – covariance matrix. Must be dimension $$2N\times 2N$$, where N is the number of modes

• mu (array) – vector means. Must be length-$$2N$$, where N is the number of modes

• hbar (float) – (default 2) the value of $$\hbar$$ in the commutation relation $$[\x,\p]=i\hbar$$

Returns

the mean and the covariance matrix of the Gaussian state

Return type

tuple