multi_excite#

multi_excite(ketbra, light_names, parts=None)[source]#

Generate multiple excitations of ketbra.

Parameters:
  • ketbra (KetBra) – State to excite.

  • light_names (List[str]) – Names of EM fields, length sets the number of excitations.

  • parts (List | None) – Which sides of density matrix to excite at each step. If None, first excitation is ket-side and all the rest are from both sides.

Return type:

KetBra