PhaseShifter
A single-mode phase-rotation component available on the Virtual Bench.
Applies a phase \(e^{i\phi}\) to one mode, on both polarisations equally. On its own this is unobservable - a global phase on a single mode changes no measurement outcome. It matters when the mode is one arm of an interferometer and is later recombined at a beam splitter, where the relative phase between arms sets the fringe.
Note
A phase shifter alone has no visible effect on single-mode intensity measurements - its effect only becomes observable when the shifted mode later interferes with another mode (e.g. at a Beam Splitter).
from QNS.components import PhaseShifter
PS = PhaseShifter("PS1", tl.env, sm, phase=90)
Constructor
phase is in degrees, must lie in 0 … 360, and is stored in
radians as self.phase. env and stateManager are required.
Ports: 1 input (port 0), 1 output (port 0).
Properties panel
Field |
Range |
Description |
|---|---|---|
|
0° - 360° |
Phase angle applied to the selected mode, entered in degrees. |
Transformation
The phase shifter transforms the mode’s creation operator as
so an \(n\)-photon Fock state picks up a phase of \(e^{in\phi}\):
For a polarisation-encoded photon, the same phase is applied to both the
horizontal and vertical components. This is exactly what
QuantumOperations.PhaseShifter
implements, rewriting the creation operators of the target mode:
Operators on every other mode are left alone. Note the consequence for multi-photon terms: an \(n\)-photon component of the target mode picks up \(e^{in\phi}\), because the creation operator is applied \(n\) times. That is the correct physics and comes for free from the symbolic expansion.
The polarisation-state branch of PhaseShifter keeps the incoming
dimension (dim = state.dim) - a phase shift creates no photons, so the
Hilbert space does not need to grow.
Input state |
Phase \(\phi\) |
Output state |
|---|---|---|
\(\lvert H \rangle\) |
\(\phi\) |
\(e^{i\phi}\lvert H \rangle\) |
\(\lvert V \rangle\) |
\(\phi\) |
\(e^{i\phi}\lvert V \rangle\) |
\(\frac{\lvert H \rangle + \lvert V \rangle}{\sqrt{2}}\) |
\(\phi\) |
\(\frac{e^{i\phi}\left(\lvert H \rangle + \lvert V \rangle\right)}{\sqrt{2}}\) |
\(\lvert nH \rangle\) |
\(\phi\) |
\(e^{in\phi}\lvert nH \rangle\) |
Single-photon output by phase
Phase |
\(e^{i\phi}\) |
Single-photon output |
|---|---|---|
0° |
1 |
\(\lvert H \rangle\) or \(\lvert V \rangle\) (unchanged) |
90° |
\(i\) |
\(i\lvert H \rangle\) or \(i\lvert V \rangle\) |
180° |
\(-1\) |
\(-\lvert H \rangle\) or \(-\lvert V \rangle\) |
270° |
\(-i\) |
\(-i\lvert H \rangle\) or \(-i\lvert V \rangle\) |
360° |
1 |
\(\lvert H \rangle\) or \(\lvert V \rangle\) (back to start) |
Note
The signature is PhaseShifter(on_mode, state, phase) - mode first, unlike
HWP(state, input_mode, angle). The component passes them positionally, so
this only matters if you call QuantumOperations directly.
Using it in an interferometer
For the two arms to interfere at BS2 they must arrive at the same
simulated timestamp. The phase shifter itself costs no time, so give QC2 +
QC4 and QC3 + QC5 equal total length. Sweeping phase from 0° to 360°
then moves the counts between D1 and D2.
Using it on the Virtual Bench
Drag Phase Shifter from the component tray onto the bench.
Wire it into the mode you want to rotate.
Click the component and set phase in degrees.
Combine it with a Beam Splitter or wave plate to make the phase shift observable, then click Run.