Devices
 Quantum Devices Simulator¶

class
netQuil.devices.
Device
[source]¶ Base class for all source and target devices

__weakref__
¶ list of weak references to the object (if defined)


class
netQuil.devices.
Fiber
(length=0.0, attenuation_coefficient=0.16, apply_error=True)[source]¶ Bases:
netQuil.devices.Device

__init__
(length=0.0, attenuation_coefficient=0.16, apply_error=True)[source]¶ Simulation of fiber optics with given length and attenuation coefficient.
 Parameters
length (Float) – length of fiber optical cable in km
attenuation_coefficient (Float) – coefficient determining likelihood of photon loss
apply_error (Boolean) – True is device should apply error, otherwise, only returns time delay


class
netQuil.devices.
Laser
(pulse_length=1e11, expected_photons=1.0, rotation_prob_variance=1.0, wavelength=1550, apply_error=True)[source]¶ Bases:
netQuil.devices.Device

__init__
(pulse_length=1e11, expected_photons=1.0, rotation_prob_variance=1.0, wavelength=1550, apply_error=True)[source]¶ Simulation of laser at 1550nm wavelength. Laser produce photons according to poisson distribution, centered around expected_photons.
