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 (ˆx1,…,ˆxN,ˆp1,…,ˆpN) ordering.
- Parameters
cov (array) – covariance matrix. Must be dimension 2N×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 ℏ in the commutation relation [ˆx,ˆp]=iℏ
- Returns
the mean and the covariance matrix of the Gaussian state
- Return type
tuple