Skip to content

Commit

Permalink
fix ham terms drawing
Browse files Browse the repository at this point in the history
  • Loading branch information
jcmgray committed Jul 10, 2024
1 parent 43330c9 commit ae6266b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion quimb/tensor/drawing.py
Original file line number Diff line number Diff line change
Expand Up @@ -1331,7 +1331,7 @@ def get_positions(
iterations="auto",
k=None,
):
if (tn.num_tensors == 1) and (fix is None):
if (tn is not None) and (tn.num_tensors == 1) and (fix is None):
# single tensor, layout manually
return layout_single_tensor(tn, dim=dim)

Expand Down

0 comments on commit ae6266b

Please sign in to comment.