photon_hamiltonian
qoptcraft.evolution.photon_hamiltonian
photon_hamiltonian(scattering_matrix, photons)
Lift the scattering linear optical matrix to a photonic hamiltonian.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
scattering_matrix |
NDArray
|
matrix of the linear optical system. |
required |
photons |
int
|
number of photons. |
required |
Returns:
Name | Type | Description |
---|---|---|
spmatrix |
NDArray
|
hamiltonian lifted to the Hilbert space of m modes and n photons. |
Source code in qoptcraft/evolution/photon_hamiltonian.py
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
|