Malus’ law

Two ways to see the same cos²θ dependence: absorb the rejected amplitude with a single LinearPolarizer, or route it to a second detector with a Wave plates (half-wave plate) in front of a PolarisingBeamSplitter. Both circuits start from the same horizontally-polarised source and only differ in what happens to the light that does not survive.

1. Malus’ law

For linearly polarised light incident on an ideal linear analyser, the transmitted intensity is

\[I_\text{out} = I_\text{in} \cos^2(\Delta)\]

where \(\Delta\) (radians for the maths below, degrees on the bench) is the angle between the incident polarisation direction and the analyser’s transmission axis. For a horizontal input, \(\Delta = \theta\), so \(I_\text{out}/I_\text{in} = \cos^2\theta\). In a single-photon simulation this intensity fraction is what the detector reads as a transmission probability: the fraction of pulses that register a click.

2. Method 1 - rotating linear polarizer

L1 ──QC1──▶ LP(θ) ──QC2──▶ D1

Input state (horizontal): \(\lvert H \rangle = \binom{1}{0}\). Transmission axis of a polarizer at \(\theta\): \(\lvert \theta \rangle = \binom{\cos\theta}{\sin\theta}\).

The Jones matrix / projection operator is

\[\begin{split}P(\theta) = \begin{pmatrix} \cos^2\theta & \cos\theta\sin\theta \\ \cos\theta\sin\theta & \sin^2\theta \end{pmatrix} = \lvert \theta \rangle \langle \theta \rvert\end{split}\]

Applying it to the horizontal input:

\[P(\theta)\lvert H \rangle = \binom{\cos^2\theta}{\cos\theta\sin\theta} = \cos\theta \; \lvert \theta \rangle\]

so the transmission probability is \(P_\text{pass} = \lVert P(\theta)\lvert H \rangle \rVert^2 = \cos^2\theta\). If the photon passes, the surviving state is the normalised \(\lvert \psi_\text{out} \rangle = \lvert \theta \rangle\); if it fails the probabilistic transmission test, the ideal polarizer absorbs it and nothing is forwarded to the detector. This is exactly what LinearPolarizer implements at the creation-operator level - see that page for the multi-photon version of the same projector.

Polarizer \(\theta\)

\(P_\text{pass}\)

Transmitted state

Expected fraction detected

0°

1

\(\lvert H \rangle\)

1

45°

1/2

\((\lvert H \rangle + \lvert V \rangle)/\sqrt{2} = \lvert D \rangle\)

0.5

90°

0

no transmitted photon

0

The script

Run the same circuit at a few polarizer angles and compare the observed click fraction against \(\cos^2\theta\). Following the guidance in Examples on dead time, the detector uses dead_time=1e-9 and mean_response_time=0 at prr=1e8 so recovery time never eats counts.

import math
from QNS.components import *
from QNS.channels import *
from QNS.StateEvoluation import *

def run_polarizer(angle_deg):
    tl = Timeline()
    sm = StateManager("SM")

    L1 = Laser("L1", tl.env, sm, prr=1e8, wl=1550e-9,
               lwidth=1, mu_photons=0.1)
    LP = LinearPolarizer("LP", tl.env, sm, angle=angle_deg)
    D1 = Detector("D1", tl.env, sm, dead_time=1e-9, jitter=0,
                  mean_response_time=0, coupling_eff=1,
                  dark_count_rate=0, det_eff=1)

    QC1 = QunatumOpticalChannel("QC1", tl.env, length=1, alpha=0.2, n_core=1.5)
    QC1.connect_channel([L1, 0], [LP, 0])
    QC2 = QunatumOpticalChannel("QC2", tl.env, length=1, alpha=0.2, n_core=1.5)
    QC2.connect_channel([LP, 0], [D1, 0])

    result = tl.run(runtime=1e-4, laser_list=[L1], detector_list=[D1])
    return L1.total_photon_emited, result["D1"]

for angle in (0, 45, 90):
    emitted, detected = run_polarizer(angle)
    print(f"{angle:>3}°  emitted={emitted:5d}  detected={detected:5d}  "
          f"fraction={detected/emitted:.3f}  "
          f"cos^2={math.cos(math.radians(angle))**2:.3f}")

Sample output (numbers vary between runs):

 0°  emitted=  953  detected=  953  fraction=1.000  cos^2=1.000
45°  emitted=  948  detected=  472  fraction=0.498  cos^2=0.500
90°  emitted=  951  detected=    0  fraction=0.000  cos^2=0.000

The observed fraction tracks \(\cos^2\theta\) because Detector treats \(1 - \lVert \psi \rVert^2\) as the probability that nothing arrived - the absorbed amplitude turns directly into missing clicks, with no extra coin flip needed.

3. Method 2 - half-wave plate + polarising beam splitter

                          ┌─QC3──▶ D2  (H)
L1 ──QC1──▶ HWP(θ) ──QC2──▶ PBS1 ────┤
                          └─QC4──▶ D1  (V)

Here the HWP rotates the input polarisation and the PBS resolves the result into horizontal and vertical outputs, so instead of one detector losing counts, two detectors trade them.

Input state: \(\lvert H \rangle = \binom{1}{0}\). The ideal HWP Jones matrix (one common convention, ignoring an irrelevant global phase):

\[\begin{split}J_\text{HWP}(\theta) = \begin{pmatrix} \cos 2\theta & \sin 2\theta \\ \sin 2\theta & -\cos 2\theta \end{pmatrix}\end{split}\]

On the bench, the PBS routes the transmitted (H) component to one output and the reflected (V) component to the other - see PolarisingBeamSplitter for the port mapping. Wiring port 0 of the PBS to D1 and port 1 to D2 gives:

HWP \(\theta\)

State after HWP

D2 (H)

D1 (V)

Interpretation

0°

\(\lvert H \rangle\)

1

0

All H

22.5°

\((\lvert H \rangle + \lvert V \rangle)/\sqrt{2} = \lvert D \rangle\)

1/2

1/2

Equal outputs

45°

\(\lvert V \rangle\)

0

1

All V

The script

import math
from QNS.components import *
from QNS.channels import *
from QNS.StateEvoluation import *

def run_hwp_pbs(angle_deg):
    tl = Timeline()
    sm = StateManager("SM")

    L1   = Laser("L1", tl.env, sm, prr=1e8, wl=1550e-9,
                 lwidth=1, mu_photons=0.1)
    HWP1 = HalfWavePlate("HWP1", tl.env, sm, angle=angle_deg)
    PBS1 = PolarisingBeamSplitter("PBS1", tl.env, sm)

    D1 = Detector("D1", tl.env, sm, dead_time=1e-9, jitter=0,   # V arm
                  mean_response_time=0, coupling_eff=1,
                  dark_count_rate=0, det_eff=1)
    D2 = Detector("D2", tl.env, sm, dead_time=1e-9, jitter=0,   # H arm
                  mean_response_time=0, coupling_eff=1,
                  dark_count_rate=0, det_eff=1)

    QC1 = QunatumOpticalChannel("QC1", tl.env, length=1, alpha=0.2, n_core=1.5)
    QC1.connect_channel([L1, 0], [HWP1, 0])
    QC2 = QunatumOpticalChannel("QC2", tl.env, length=1, alpha=0.2, n_core=1.5)
    QC2.connect_channel([HWP1, 0], [PBS1, 0])
    QC3 = QunatumOpticalChannel("QC3", tl.env, length=1, alpha=0.2, n_core=1.5)
    QC3.connect_channel([PBS1, 0], [D1, 0])
    QC4 = QunatumOpticalChannel("QC4", tl.env, length=1, alpha=0.2, n_core=1.5)
    QC4.connect_channel([PBS1, 1], [D2, 0])

    result = tl.run(runtime=1e-4, laser_list=[L1], detector_list=[D1, D2])
    return L1.total_photon_emited, result

for angle in (0, 22.5, 45):
    emitted, result = run_hwp_pbs(angle)
    print(f"{angle:>4}°  emitted={emitted:5d}  "
          f"D1(V)={result['D1']:5d}  D2(H)={result['D2']:5d}")

Sample output (numbers vary between runs):

   0°  emitted=  952  D1(V)=    0  D2(H)=  952
22.5°  emitted=  946  D1(V)=  471  D2(H)=  475
  45°  emitted=  950  D1(V)=  950  D2(H)=    0

Reading it

Nothing is absorbed. Unlike Method 1, the HWP is unitary and the PBS is a lossless router, so D1 + D2 equals emitted at every angle - the light that Method 1 would have discarded shows up on the other detector instead.

The split is deterministic per photon, not per pulse. At 22.5° the PBS puts each photon into a superposition across its two outputs, and it is the measurement at the detectors that decides which one clicks; averaged over many pulses that reproduces the same 1/2, 1/2 split that Method 1’s \(\cos^2(45°)\) gives for a single detector.

4. Comparing the two methods

Method 1 (linear polarizer)

Method 2 (HWP + PBS)

Detectors needed

1

2

What happens to the rejected amplitude

Absorbed - fewer clicks

Routed to the other detector - no clicks lost

Angle swept

Polarizer \(\theta\)

HWP \(\theta\) (rotates the state by \(2\theta\))

Curve you are checking

\(\cos^2\theta\) fraction detected

\(\cos^2(2\theta)\) / \(\sin^2(2\theta)\) split between D1, D2

Both are worth running: Method 1 is the direct textbook statement of Malus’ law and the simpler circuit; Method 2 is the shape of a real polarisation analyser (the same HWP + PBS pair used in the Quickstart circuit) and shows that the “missing” intensity was never destroyed, only redirected.

5. References

  1. Physics LibreTexts, Wave Plates and Polarizers. Gives the ideal rotated linear-polarizer projection matrix \(P_\theta = \begin{pmatrix} \cos^2\theta & \cos\theta\sin\theta \\ \cos\theta\sin\theta & \sin^2\theta \end{pmatrix}\).

  2. Physics LibreTexts, Creating and Manipulating Polarisation States. Gives the Jones-matrix treatment of linear polarizers and derives the \(\cos^2\) dependence of Malus’ law.

  3. S. Prahl, pypolar documentation - The Jones Calculus: Symbolic Algebra. Gives \(\lvert \theta \rangle = \binom{\cos\theta}{\sin\theta}\), the rotated linear-polarizer matrix, Malus’ law, and retarder/Jones-matrix conventions.

  4. R. C. Jones, “A New Calculus for the Treatment of Optical Systems,” Journal of the Optical Society of America, vol. 38, p. 681, 1948, cited in the pypolar Jones-vector documentation above.