There have been reports that when generating too many indices automatically (using the atomic counter) in the same Julia session, it breaks.
This usually happens due to repeatedly generating TensorNetworks.
This PR fixes it by introducing IndexCounter: a small wrapper over the currently global behaviour.
If merged, all TensorNetworks would start from the same index.
There have been reports that when generating too many indices automatically (using the atomic counter) in the same Julia session, it breaks.
This usually happens due to repeatedly generating
TensorNetworks
.This PR fixes it by introducing
IndexCounter
: a small wrapper over the currently global behaviour. If merged, allTensorNetwork
s would start from the same index.