Fiber Stretcher

Models for simulation of fiber stretching.

This module introduces the FiberStretcher class. The fiber stretcher modifies the phase of incoming photons, but does not add additional delay.

class src.components.fiber_stretcher.FiberStretcher(name, timeline, phase=0.0)

Class implementing a simple fiber stretcher.

name

name of the fiber stretcher instance.

Type:

str

timeline

simulation timeline.

Type:

Timeline

_circuit

quantum circuit used to apply a phase shift to incoming photons.

Type:

Circuit

get(photon: Photon, **kwargs)

Method to receive a photon.

Applies the local phase quantum circuit, then forwards to first receiver. This phase is only applied if the photon is using the absorptive encoding scheme.

Parameters:

photon (Photon) – photon to transmit.

init()

Method to initialize entity (abstract).

Entity init methods are invoked for all timeline entities when the timeline is initialized. This method can be used to perform any necessary functions before simulation.

set_phase(phase: float)

Method to change the phase applied to incoming photons.

Parameters:

phase (float) – new phase to use.