Skip to content

Fix global phase in TwoQubitWeylDecomposition.circuit - #17432

Open
Ziqi (Adam) CHEN (ChenziqiAdam) wants to merge 1 commit into
Qiskit:mainfrom
ChenziqiAdam:fix-weyl-circuit-global-phase
Open

Ziqi (Adam) CHEN (ChenziqiAdam) wants to merge 1 commit into
Qiskit:mainfrom
ChenziqiAdam:fix-weyl-circuit-global-phase

Conversation

@ChenziqiAdam

Copy link
Copy Markdown

Fixes #17401.

TwoQubitWeylDecomposition.circuit() returned a circuit with the wrong global phase (off by a factor of -1) for roughly half of all two-qubit unitaries. The decomposition's attributes reassemble U exactly, so only circuit() was affected.

AI/LLM disclosure

  • No part of this submission is LLM generated.
  • Some written text was generated by:
  • Some submitted code was generated by: claude code

@qiskit-bot qiskit-bot added the Community PR PRs from contributors that are not 'members' of the Qiskit repo label Nov 5, 2026
@qiskit-bot

Copy link
Copy Markdown
Collaborator

Thank you for opening a new pull request.

Before your PR can be merged it will first need to pass continuous integration tests and be reviewed. Sometimes the review process can be slow, so please be patient.

While you're waiting, please feel free to review other open PRs. While only a subset of people are authorized to approve pull requests for merging, everyone is encouraged to review open pull requests. Doing reviews helps reduce the burden on the core team and helps make the project's code better for everyone.

One or more of the following people are relevant to this code:

  • @Qiskit/terra-core
  • @levbishop

@ShellyGarion Shelly Garion (ShellyGarion) added mod: synthesis Changelog: Fixed Add a "Fixed" entry in the GitHub Release changelog. labels Nov 5, 2026
@ShellyGarion

Copy link
Copy Markdown
Member

Ziqi (Adam) CHEN (@ChenziqiAdam) - could you please sign the CLA?

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Changelog: Fixed Add a "Fixed" entry in the GitHub Release changelog. Community PR PRs from contributors that are not 'members' of the Qiskit repo mod: synthesis

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

TwoQubitWeylDecomposition.circuit() has the wrong global phase for about half of all unitaries

3 participants