Detector¶
- class lightworks.emulator.Detector(efficiency: float = 1, p_dark: float = 0, photon_counting: bool = True)¶
Creates a detector which can be used to model the presence of imperfect detection properties when added to the Sampler.
- Parameters:
efficiency (float, optional) – Set the per-channel efficiency of the detectors.
p_dark (float, optional) – The probability of dark counts per detector, note that this will depend on the dark count rate and the system clock speed.
photon_counting (bool, optional) – Set to True to use photon number resolving detectors and False to use threshold detection.
- property efficiency: float¶
The per-channel detection efficiency.
- property p_dark: float¶
The per-channel dark counts probability.
- property photon_counting: float¶
Controls whether the detectors are photon number resolving.