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

Cutting workflow should work with any Hashable as labels #390

Closed
garrison opened this issue Aug 30, 2023 · 0 comments · Fixed by #410
Closed

Cutting workflow should work with any Hashable as labels #390

garrison opened this issue Aug 30, 2023 · 0 comments · Fixed by #410
Labels
cutting QPD-based circuit cutting code enhancement New feature or request

Comments

@garrison
Copy link
Member

Currently, separate_circuit takes partition_labels: Sequence[Hashable], but the high-level cutting workflow requires that the partition labels either be all integers or all strings. This should be pretty simple to fix once the refactor we're targeting for v0.4 is complete; essentially, we'll just need to avoid sorting the labels and refer to them by name always.

@garrison garrison added cutting QPD-based circuit cutting code enhancement New feature or request labels Aug 30, 2023
garrison added a commit that referenced this issue Sep 11, 2023
* Make the cutting workflow work with any `Hashable` as label

Fixes #390

* Add test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cutting QPD-based circuit cutting code enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant