thewalrus.fock_gradients.beamsplitter¶
-
fock_gradients.
beamsplitter
(theta, phi, cutoff, dtype=<class 'numpy.complex128'>)¶ Calculates the Fock representation of the beamsplitter.
- Parameters
theta (float) – transmissivity angle of the beamsplitter. The transmissivity is \(t=\cos(\theta)\)
phi (float) – reflection phase of the beamsplitter
cutoff (int) – Fock ladder cutoff
dtype (data type) – Specifies the data type used for the calculation
- Returns
The Fock representation of the gate
- Return type
array[float]
code/api/thewalrus.fock_gradients.beamsplitter
Download Python script
Download Notebook
View on GitHub
Downloads