BeamSplitter
A two-input, two-output optical component available on the Virtual Bench.
A non-polarising beam splitter: two inputs, two outputs, splitting on amplitude rather than polarisation. This is the component where two-photon interference happens, and it is correspondingly the most intricate one in the package.
A photon arriving at an input is randomly routed to one of the two outputs:
it either transmits (passes straight through) or reflects (bounces to
the other output). On the Virtual Bench it appears as a diamond-shaped block
labelled BS, with one input and one output wired to each side.
Note
The Virtual Bench samples the routing outcome for each photon independently. This is enough for single-photon routing statistics, but the underlying component tracks the full complex amplitude and does model multi-photon interference effects - see The transformation below.
from QNS.components import BeamSplitter
BS = BeamSplitter("BS1", tl.env, sm, efficiency=1, transmittance=50)
Constructor
BeamSplitter(uID, env, stateManager, efficiency=1, transmittance=50)
Parameter |
Default |
Valid range |
Meaning |
|---|---|---|---|
|
|
|
Probability the splitter acts at all. Rolled per arriving photon; on failure the photon is dropped and nothing propagates. |
|
|
|
Splitting ratio in per cent. Stored as |
Ports: 2 inputs (0, 1), 2 outputs (0, 1). Any other
port number raises TypeError. Leaving an input or output unconnected
is fine - an unconnected output simply drops that mode’s photon handle, while
the amplitude stays in the global state.
Properties panel
When a Beam Splitter is selected on the bench, its properties appear in the side panel:
Field |
Description |
|---|---|
|
A unique name for this beam splitter instance (e.g. |
|
The chance a photon passes straight through, set between 0 - 100%. The remaining percentage is the chance of reflection. |
|
A slider between 0 and 1 setting how reliably the device processes an incoming photon. A value of 1.00 means every photon is processed; lower values model real-world loss. |
Note
Give each Beam Splitter a distinct Component_ID if you use more than
one in the same circuit, so results and settings stay easy to tell apart.
How it works
For every photon that reaches the beam splitter, two things are decided, one after another:
Is the photon processed at all? This is governed by Efficiency. At 1.00, every photon is processed; lower settings mean some photons are lost, modelling a lossy or imperfect device.
Does it transmit or reflect? This is governed by Transmittance. A photon entering on the left is sent to the straight-through output with probability equal to the transmittance, and to the crossed (reflected) output otherwise.
With the default 50% transmittance and 1.00 efficiency, every incoming photon is processed, and it has an equal (50/50) chance of exiting through either output.
The transformation
A lossless, non-polarising beam splitter is described by the unitary matrix
where \(T\) is the transmittance and \(R\) the reflectance. The probability of a given outcome is the squared modulus of the matrix entry:
The Transmittance field on the properties panel sets \(T\) directly (as a percentage); the beam splitter uses \(T\) and \(R = 1 - T\) as the routing probabilities described in How it works, rather than propagating a complex amplitude in that model.
In the underlying package, with \(r\) the stored ratio, \(\rho = \sqrt{r}\) and \(\tau = \sqrt{1-r}\), the transformation applies, for each polarisation independently:
At transmittance=50 this is the balanced splitter with the standard minus
sign on one output, which is what produces Hong-Ou-Mandel bunching when
indistinguishable photons meet at the two inputs.
Port mapping
Looking at the diamond icon on the bench, the two ports on the left are inputs and the two ports on the right are outputs.
Input |
Transmit (prob. \(T\)) |
Reflect (prob. \(R\)) |
|---|---|---|
Top-left input |
→ Top-right output |
→ Bottom-right output |
Bottom-left input |
→ Bottom-right output |
→ Top-right output |
important:
.. Interference requires the two timestamps to be **exactly** equal after
.. rounding to 20 decimal places. There is no coherence-time or temporal-overlap
.. model: photons either land on the same simulated instant and interfere fully,
.. or they do not and are treated independently. Build interferometer arms with
.. matched total channel length.
Using it on the Virtual Bench
Drag Beam Splitter from the component tray onto the bench.
Wire a source (e.g. Laser) into one of its input ports, and wire its output ports onward to detectors or further components.
Click the component to open Beam Splitter Properties, and set Transmittance (%) and Efficiency for your circuit.
Click Run to simulate the circuit.
End-to-end example
This section walks through a complete circuit built entirely from a Laser and a single Beam Splitter, run on the Virtual Bench and submitted as a job.
The circuit
A Laser (L1) is wired into the top-left input of a 50:50 Beam Splitter (BS).
Both outputs of the beam splitter are wired to detectors, D1 and D2. The
dashed lines labelled QF1, QF2, QF3 are the quantum channels
(fibre links) connecting each component.
Running the job
Clicking Run submits the circuit as a job to the compute cluster. The job
panel reports its progress through the standard stages - pending →
queue → running → completed - along with metadata such as job ID,
execution time, and which processor it ran on. Once finished, the Output
tab shows the detector counts collected during the run.
Reading the result
An Example output report:
Key |
Value |
Meaning |
|---|---|---|
|
128 |
Total number of photons sent through the circuit. |
|
70 |
Photons detected at D1 (the transmitted/straight-through path). |
|
58 |
Photons detected at D2 (the reflected/crossed path). |
With Transmittance left at its default 50%, each photon has an equal, independent chance of landing at D1 or D2, so the expected split over 128 photons is 64 / 64. The observed 70 / 58 does not match that exactly - and that is expected. Each photon’s outcome is an independent random draw (see How it works), so the result behaves like a coin-flip experiment: over 128 flips, some deviation from a perfect 50/50 split is normal statistical noise, not an error in the circuit.
Note
As a rule of thumb, the typical spread around the expected count for \(n\) photons at probability \(p\) is \(\sqrt{n p (1-p)}\). Here \(n = 128\), \(p = 0.5\) gives a spread of about \(\pm 5.7\) counts, so a result like 70/58 (about 8% away from the 64/64 midpoint) is well within the range of ordinary statistical fluctuation. Running the same circuit again, or increasing the photon count, will typically bring the split closer to 50/50.