Quantum channels
The Quantum Channel is used to transmit quantum information, such as photons carrying quantum states, between nodes. In AnuQarana, two physical implementations are available: Optical Fibre and Free Space. The specific channel model determines the propagation delay and photon-loss behaviour.
Both concrete quantum channels carry photon objects, both impose a
propagation delay, and both may drop the photon.
Quantum Channel - Optical Fibre
The Optical Fibre Quantum Channel models the transmission of photons through an optical fibre.
Configuration Parameters
Parameter |
Description |
Range |
|---|---|---|
Type |
Specifies the physical medium used for quantum communication. |
Optical Fibre |
Length (m) |
Length of the optical fibre channel in metres. |
0-10000 m |
Attenuation Coefficient (Alpha) |
Attenuation associated with the optical fibre channel. |
0-10 |
Constructor
Parameter |
Default |
Valid range |
Meaning |
|---|---|---|---|
|
|
|
Fibre length in metres. |
|
|
|
Attenuation in dB/km. Stored internally as |
|
|
|
Refractive index of the core; sets the propagation speed. |
|
|
|
Probability the polarisation survives unchanged. Below this, the photon is depolarised. |
|
|
unchecked |
Chromatic dispersion coefficient; feeds the transmitted photon’s temporal width. |
Note
Out-of-range values raise ValueError. n_cladding, core_dia and depol_prob are fixed at 0 internally and are not constructor arguments.
Delay
The propagation delay is computed as length divided by the propagation speed c / n_core, with c taken
as 3e8 m/s. The result is stored as both mean_transmission_time and
delay.
A 1 m fibre with n_core=1.5 gives 5 ns. The delay is deterministic -
chromatic dispersion is computed onto the photon’s temporal width but does
not currently randomise the arrival time.
Fibre Attenuation and Transmittance
Photon loss in the optical fibre is represented through the channel transmittance. The probability of successful transmission decreases with increasing channel attenuation and propagation length:
where \(T\) is the channel transmittance, \(\alpha\) is the attenuation coefficient used by the transmission model, and \(L\) is the fibre length.
With alpha=0.2 dB/km and length=1 m this transmittance is
approximately 0.99995 - negligible, which is correct for a one-metre patch
cord. Attenuation only becomes visible at kilometre scales; at
length=10000 m the same alpha gives a transmittance of about 0.63.
Note
coupling_eff is assigned 1.0 unconditionally at the top of the
transmission routine, so the coupling check never rejects anything. The
class does implement a physical model in coupling_efficiency -
geometric, Fresnel and angular terms from the source’s emitter geometry
and numerical aperture - but the call is commented out. Call it yourself
before running if you want it, bearing in mind that n_cladding and
core_dia are both 0.
Note
The depolarisation branch calls depolarize(...) on the photon’s legacy
single-photon Jones state, which the simulation no longer evolves. With
pol_fidelity=1 (the default) the branch is unreachable anyway.
Interruption
The transmission routine wraps its body in an interrupt handler and returns
None when interrupted. Beam splitters rely on this: when a second photon
arrives on the same timestamp, the splitter interrupts the in-flight output
transmissions so it can redo the two-mode transformation with both inputs
present.
Quantum Channel - Free Space
The Free Space Quantum Channel models photon transmission through free space. The propagation speed is taken as the speed of light in vacuum, and photon loss is controlled using the configured loss parameter.
Configuration Parameters
Parameter |
Description |
Range |
|---|---|---|
Type |
Specifies the physical medium used for quantum communication. |
Free Space |
Length (m) |
Distance between the source and destination in metres. |
0-10000 m |
Loss |
Probability of photon loss in the free-space channel. |
0-1 |
Constructor
Parameter |
Default |
Meaning |
|---|---|---|
|
|
Path length in metres. |
|
|
Stored but not used - free-space propagation is always at \(c\). |
|
|
Probability the photon is lost. |
None of these are range-checked, unlike the fibre channel.
Delay
The propagation delay is simply the path length divided by c (3e8
m/s); n_core plays no part in it.
Photon Loss
During transmission, the free-space channel generates a random number and compares it with the configured loss value. If the random value is greater than the loss parameter, the photon is transmitted to the destination. Otherwise, the photon is considered lost.
Loss Value |
Interpretation |
|---|---|
0 |
No photon loss |
1 |
Complete photon loss |
0 < Loss < 1 |
Intermediate probability of photon loss |
Choosing between them
Use the Optical Fibre channel when you want the loss to follow from a physical attenuation coefficient and length, and a delay slowed by the core index - the usual choice for benchtop and metro-fibre circuits. Use the Free Space channel when you want to dial a loss probability in directly, or when modelling a line-of-sight link.
Both are interchangeable when wiring components together, so swapping one for the other is a small, localised change.