Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace the global index counter generator for a local data structure #170

Merged
merged 5 commits into from
Jul 22, 2024

Conversation

mofeing
Copy link
Member

@mofeing mofeing commented Jul 9, 2024

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.

@mofeing mofeing marked this pull request as ready for review July 22, 2024 08:38
@mofeing mofeing requested a review from a team July 22, 2024 08:38
@mofeing mofeing added refactor Change internals triage Needs group consensus labels Jul 22, 2024
Copy link
Member

@jofrevalles jofrevalles left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@mofeing mofeing merged commit 53d0cfd into master Jul 22, 2024
6 checks passed
@mofeing mofeing deleted the feature/local-index-counter branch July 22, 2024 08:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor Change internals triage Needs group consensus
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants