Fock space

# Fock space

N = 10
b = FockBasis(N)
alpha = 0.4
psi = coherentstate(b, alpha)
a = destroy(b)

A fock space describes the situation of variable particle number. I.e. the system can have zero particles, one particle, two particles and so on.

To create a basis of a Fock space QuantumOptics.jl provides the FockBasis class which has to be supplied with an integer specifying the maximum number of photons. It is defined as:

struct FockBasis <: Basis
shape::Vector{Int}
N::Int
end