# Class GaussianSimulator¶

## Class Documentation¶

class GaussianSimulator : public blackbird::Program

Device GaussianSimulator: corresponds to any able Gaussian simulator; i.e. a simulator able to apply and manipulate all Gaussian states/operations/measurements defined in Blackbird.

Public Functions

GaussianSimulator()

Constructor to initialise the device

GaussianSimulator(Program dev)

Constructor to initialise the device

GaussianSimulator(int num_subsystems, int s = 0, double hbar = 2)

Constructor to initialise the device with a specific set of parameters.

Parameters
• num_subsystems: number of modes to initialise the simulator with
• s: number of shots to perform
• hbar: value of hbar in the canonical commutation relation

void print_device_info()

prints out device information

Public Members

int ns

number of subsystems

int shots = 1

Number of shots to perform on the device (default 1)

double hb = 2.0

Value of $$\hbar$$ to use in the commutation relation $$[\hat{x},\hat{p}]=i\hbar$$