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

Support Adjoint of Relabel #1920

Merged
merged 1 commit into from
Sep 16, 2024
Merged

Support Adjoint of Relabel #1920

merged 1 commit into from
Sep 16, 2024

Conversation

swernli
Copy link
Collaborator

@swernli swernli commented Sep 16, 2024

This change adds one layer of indirection in the library implementation of Relabel so that the operation can be adjointable. The adjoint is just a switch of the qubit arrays such that Adjoint Relabel(current, updated) is the same as Relabel(updated, current).

This change adds one layer of indirection in the library implementation of `Relabel` so that the operation can be adjointable. The adjoint is just a switch of the qubit arrays such that `Adjoint Relabel(current, updated)` is the same as `Relabel(updated, current)`.
Copy link

Change in memory usage detected by benchmark.

Memory Report for 727fe9e

Test This Branch On Main Difference
compile core + standard lib 18023304 bytes 18009732 bytes 13572 bytes

@swernli swernli added this pull request to the merge queue Sep 16, 2024
Merged via the queue into main with commit 82e2a62 Sep 16, 2024
18 checks passed
@swernli swernli deleted the swernli/adjoint-relabel branch September 16, 2024 23:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants