Fixed get generalized indices
This commit is contained in:
parent
59307d1380
commit
c6cdec8217
|
@ -142,7 +142,7 @@ def concat_generalized_indices(*indices: Sequence[GeneralizedIndex]) -> Generali
|
||||||
"""
|
"""
|
||||||
o = GeneralizedIndex(1)
|
o = GeneralizedIndex(1)
|
||||||
for i in indices:
|
for i in indices:
|
||||||
o = o * get_previous_power_of_2(i) + i
|
o = o * get_previous_power_of_2(i) + (i - get_previous_power_of_2(i))
|
||||||
return o
|
return o
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue