hilbert_dimension
qoptcraft.basis.hilbert_dimension
hilbert_dim(modes, photons)
Dimension of the Hilbert space with m modes and n photons.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
modes |
int
|
number of modes. |
required |
photons |
int
|
number of photons. |
required |
Returns:
Name | Type | Description |
---|---|---|
int |
int
|
dimension. |
Source code in qoptcraft/basis/hilbert_dimension.py
4 5 6 7 8 9 10 11 12 13 14 |
|