Skip to content

Commit

Permalink
quick bugfix in symbolic_mpo
Browse files Browse the repository at this point in the history
  • Loading branch information
jjren authored and liwt31 committed Nov 24, 2022
1 parent 871caaa commit bac8bed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions renormalizer/mps/symbolic_mpo.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,8 +342,8 @@ def _terms_to_table(model: Model, terms: List[Op], const: float):

table = []
factor_list = []

dummy_table_entry = [Op.identity(b.dof) for b in model.basis]
dummy_table_entry = [Op.identity(b.dof) if not b.multi_dof else Op.identity(b.dof[0]) for b in model.basis]
for op in terms:
elem_ops, factor = op.split_elementary(model.dof_to_siteidx)
table_entry = dummy_table_entry.copy()
Expand Down

0 comments on commit bac8bed

Please sign in to comment.