spheres.oscillators.second_quantize_state

spheres.oscillators.second_quantize_state(q, a=None, state=False)[source]

Upgrades a first quantized state to a second quantized creation operator given a list of annihilators. If the annihilators aren’t provided, they are constructed.

Parameters
  • q (qt.Qobj) – First quantized state.

  • a (list) – List of annihilators.

  • state (bool) – If True, returns the second quantized state itself, obtained by acting with the creation operator on the vacuum.

Returns

Q – Second quantized creation operator (or state).

Return type

qt.Qobj