Sources

Sources are components which generate some kind of input, such as a laser which generates some optical field, or a signal generator which produces some electronic signal.

Laser

laser
l

Represents a laser producing a beam with associated properties such as power and frequency.

Syntax:
l name P=1 f=0 phase=0 signals_only=false
Required:

name: Name of the newly created laser.

Optional:

P: Power of the laser (in Watts), defaults to 1 W.

f: Frequency-offset of the laser from the default (in Hz) or Frequency object. Defaults to 0 Hz offset.

phase: Phase-offset of the laser from the default, defaults to zero.

signals_only: When True, this laser component will only inject signal sidebands. They will use the current carrier value as a scaling terms but the carrier will not be injected into the simulation. This allows a user to just inject signal sidebands into a model.

Example:

Create a 10 W laser at the carrier frequency with zero phase:

laser l1 P=10 f=0 phase=0

Squeezer

squeezer
sq

Represents a squeezer producing a squeezed-light beam with a given squeezing in decibels and angle.

Syntax:
sq name db f=0 angle=0
Required:

name: Name of the newly created squeezer.

db: Squeezing factor (in amplitude decibels). 6dB gives a factor of 2 reduction in noise.

Optional:

f: Frequency-offset of the squeezer from the default (in Hz) or Frequency object. Defaults to 0 Hz offset.

angle: Squeezing angle (in degrees). Defaults to zero.

Signal generator

signal_generator
sgen

Represents a signal generator which produces a signal with a given amplitude and phase.

Syntax:
sgen name node amplitude=1 phase=0
Required:

name: Name of newly created signal generator.

node: A node to inject a signal into.

Optional:

amplitude: Amplitude of the signal in volts.

phase: Phase-offset of the signal from the default in degrees, defaults to zero.

Noise source

noise
Syntax:
noise name node ASD