ngraymon/termfactory

Add Thermal Flag

Opened this issue · 1 comments

In GitLab by @lhprice on May 16, 2022, 14:42

  • maybe eventually have a thermal flag?
# unpack kwargs
thermal = kwargs['thermal ']
only_ground_state = kwargs['only_ground_state']
lhs_rhs = kwargs['lhs_rhs']

then we could do

if thermal:  # until we work with thermal equations this should always be true (need to remove when working on thermal stuff)
    master_omega.operator_list[:] = [p for p in master_omega.operator_list if p.m == 0]

instead of

if True:  # until we work with thermal equations this should always be true (need to remove when working on thermal stuff)
    master_omega.operator_list[:] = [p for p in master_omega.operator_list if p.m == 0]

raise notimplemented down the line