sf.utils.fock_state

fock_state(n, fock_dim=5)[source]

Returns the Fock state

Parameters
  • n (int) – the occupation number

  • fock_dim (int) – the size of the truncated Fock basis

Returns

the Fock state

Return type

array