qudit_sim.HamiltonianBuilder.build_hdiag

HamiltonianBuilder.build_hdiag()

Build the diagonal term of the Hamiltonian.

Return type

Qobj

Returns

A Qobj representing Hdiag. The object may be empty if the qudit frame is used.