qml.devices.default_gaussian¶
The default.gaussian
device is a simulator for Gaussian continuous-variable
quantum computations, and can be used as a template for writing PennyLane
devices for new CV backends.
It implements the necessary Device
methods as well as all built-in
continuous-variable Gaussian operations
, and provides a very simple simulation of a
Gaussian-based quantum circuit architecture.
Classes
|
Default Gaussian device for PennyLane. |
Functions
|
Beamsplitter. |
|
Returns a coherent state. |
CX gate. |
|
CZ gate. |
|
|
Returns a squeezed coherent state |
|
Displacement in the phase space. |
|
Calculates the expectation and variance of a Fock state probability. |
|
Returns the probability of detection of a particular PNR detection event. |
|
Returns a Gaussian state. |
|
Function factory that returns the Homodyne expectation of a one mode state. |
|
Returns 1. |
InterferometerUnitary |
|
|
Partitions a sequence into all groupings of pairs and singles of elements. |
|
Calculates the mean photon number for a given one-mode state. |
|
Calculates the expectation and variance for an arbitrary polynomial of quadrature operators. |
Quadratic phase shift. |
|
|
Rotation in the phase space. |
|
Inserts a single mode Gaussian into the state representation of the complete system. |
|
Returns the squeezed covariance matrix of a squeezed state. |
|
Returns a squeezed state. |
|
Squeezing in the phase space. |
|
Returns a thermal state. |
|
Two-mode squeezing. |
|
Returns the vacuum state. |