qudit_sim.HamiltonianBuilder.build

HamiltonianBuilder.build(rwa=False, compile_hint=True, tlist=None, args=None)

Return the list of Hamiltonian terms passable to qutip.sesolve.

Parameters
  • rwa (bool) – If True, apply the rotating-wave approximation.

  • compile_hint (bool) – If True, interaction Hamiltonian terms are given as compilable strings.

  • tlist (Optional[numpy.ndarray]) – If not None, all callable Hamiltonian coefficients are called with (tlist, args) and the resulting arrays are instead passed to sesolve.

  • args (Optional[Dict[str, Any]]) – Arguments to the callable coefficients.

Return type

List

Returns

A list of Hamiltonian terms that can be passed to qutip.sesolve.