Photon and Utilities
Photon tools
- class Photon(field: complex = (1e-12+0j), frequency: float = 1e-12, photon_number: float = 1e-12, source_phase: float = 1e-12, photon_id: int = <factory>, qubit_index: int = -1, quantum_entangler: ~LaserPy_Quantum.QuantumOptics.Entangler.QuantumEntangler | None = None)[source]
Bases:
objectPhoton class.
- field: complex
- frequency: float
- photon_number: float
- source_phase: float
- photon_id: int
- qubit_index: int
- quantum_entangler: QuantumEntangler | None
- classmethod from_photon(other: Photon) Photon[source]
Photon classmethod from photon deepcopy method
- property amplitude: float
amplitude (V/m) of the field
- property phase: float
phase (rad) of the field
Simulation helpers
utils for LaserPy_Quantum
- display_class_instances_data(class_instances: tuple[DataComponent, ...], time_data: ndarray, simulation_keys: tuple[str, ...] | None = None)[source]
display merged graph for comparision of same class members data
- get_time_delay_phase_correction(laser: Laser, time_delay: float)[source]
Calculate the phase correction for a given time delay.
- Parameters:
laser (Laser) – Laser instance for which we want the phase correction
time_delay (float)
- Returns:
Phase correction in radians in the range [-pi, pi)
- Return type:
float