diff --git a/quimb/tensor/tensor_core.py b/quimb/tensor/tensor_core.py index dee6efa7..ed11cdd2 100644 --- a/quimb/tensor/tensor_core.py +++ b/quimb/tensor/tensor_core.py @@ -9231,29 +9231,7 @@ def expand_bond_dimension( mode=mode, rand_strength=rand_strength, rand_dist=rand_dist, - ) - ) - ) - else: - edata = do("pad", t.data, pads, mode="constant") - - t.modify(data=edata) - ) - else: - edata = do("pad", t.data, pads, mode="constant") - - t.modify(data=edata) ) - ) - else: - edata = do("pad", t.data, pads, mode="constant") - - t.modify(data=edata) - ) - else: - edata = do("pad", t.data, pads, mode="constant") - - t.modify(data=edata) return tn