Skip to content

Fix bug in Controlled SX with empty controls #2507

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

Merged
merged 1 commit into from
Jun 4, 2025
Merged

Conversation

swernli
Copy link
Collaborator

@swernli swernli commented Jun 4, 2025

The decomposition for Controlled SX when the controls list is empty incorrectly performed an adjoint SX instead of a normal SX. This fixes the bug and adds tests for this case.

The decomposition for `Controlled SX` when the controls list is empty incorrectly performed an adjoint SX instead of a normal SX. This fixes the bug and adds tests for this case.
@swernli swernli requested a review from DmitryVasilevsky as a code owner June 4, 2025 06:02
Copy link

github-actions bot commented Jun 4, 2025

Change in memory usage detected by benchmark.

Memory Report for 6d03f9b

Test This Branch On Main Difference
compile core + standard lib 25440502 bytes 25441758 bytes -1256 bytes

Copy link
Contributor

@DmitryVasilevsky DmitryVasilevsky left a comment

Choose a reason for hiding this comment

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

Wow!

@swernli swernli added this pull request to the merge queue Jun 4, 2025
Merged via the queue into main with commit 3d36e1f Jun 4, 2025
18 checks passed
@swernli swernli deleted the swernli/sx-fix branch June 4, 2025 16:20
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.

2 participants