Skip to content

Conversation

@anurudhp
Copy link
Contributor

@anurudhp anurudhp commented Oct 29, 2024

towards #1266

  • QubitizationWalkOperator does not need a specialized control, it is handled automatically by the select and reflect ops it decomposes to. The bloq/cirq diagrams also match the default in Controlled.
  • Implement ctrl systems for basic bloqs TwoBitSwap, ZGate, YGate.
  • [new] Add a AdjointWithSpecializedCtrl metabloq, which pushes single bit controls to the subbloq. This fixes Adjoint prevents specialized control bloqs from being constructed #1480
  • Above is used in SelectHubbard. Also fix a bug in it: the decomp does not account for control_val=0, so use default for that case.

@anurudhp anurudhp force-pushed the 2024/10/29-refactor-walk-op branch from ed3f295 to 5ea723a Compare October 29, 2024 12:36
@anurudhp anurudhp force-pushed the 2024/10/29-refactor-walk-op branch from e7f4b2e to 1df30f6 Compare October 29, 2024 14:39
@anurudhp anurudhp marked this pull request as ready for review October 29, 2024 14:39
@anurudhp
Copy link
Contributor Author

Copy link
Collaborator

@mpharrigan mpharrigan left a comment

Choose a reason for hiding this comment

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

initial review, thanks for the ping

@anurudhp anurudhp force-pushed the 2024/10/29-refactor-walk-op branch from c8afa13 to e1dabca Compare October 30, 2024 19:41
@anurudhp anurudhp force-pushed the 2024/10/29-refactor-walk-op branch from 5579ff0 to b1165b3 Compare November 1, 2024 20:08
@mpharrigan mpharrigan merged commit 58e6b71 into quantumlib:main Nov 4, 2024
8 checks passed
@anurudhp anurudhp deleted the 2024/10/29-refactor-walk-op branch November 4, 2024 23:38
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.

Adjoint prevents specialized control bloqs from being constructed

2 participants