Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
austingmhuang committed Jan 21, 2025
1 parent 98bb29b commit 6dfb9d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pennylane/labs/vibrational/christiansen_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -848,7 +848,7 @@ def christiansen_integrals_dipole(pes, n_states=16):
comm.Barrier()
dipole_cform_onebody = comm.bcast(dipole_cform_onebody, root=0)

if pes.localized is True or pes.dipole_level > 1:
if pes.localized and pes.dipole_level > 1:
local_dipole_cform_twobody = _cform_twomode_dipole(pes, n_states)
comm.Barrier()

Expand All @@ -865,7 +865,7 @@ def christiansen_integrals_dipole(pes, n_states=16):
comm.Barrier()
dipole_cform_twobody = comm.bcast(dipole_cform_twobody, root=0)

if pes.localized is True or pes.dipole_level > 2:
if pes.localized and pes.dipole_level > 2:
local_dipole_cform_threebody = _cform_threemode_dipole(pes, n_states)
comm.Barrier()

Expand Down

0 comments on commit 6dfb9d4

Please sign in to comment.