Skip to content

Conversation

@Kalpeshcodes
Copy link

Summary

Addresses #15465

Adds a extra condition to _disentangle function in isometry.py that prevents the code from ignoring the pi phase of [-1, 0] Isometry.

Details and comments

The problem only occurs for when the UCGate (given as list of single-qubit gates), which is used to disentangle a qubit while encoding the Isometry, is just a single diagonal gate with real values. This only occurs when this gate is either identity or -1*identity. Earlier this -1*identity was skipped, ignoring the global phase, leading to the phase-incorrect [-1,0]. But with the new check this is fixed.

@Kalpeshcodes Kalpeshcodes requested a review from a team as a code owner December 21, 2025 15:49
@qiskit-bot qiskit-bot added the Community PR PRs from contributors that are not 'members' of the Qiskit repo label Dec 21, 2025
@qiskit-bot
Copy link
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:

  • @Cryoris
  • @Qiskit/terra-core
  • @ajavadia

@CLAassistant
Copy link

CLAassistant commented Dec 21, 2025

CLA assistant check
All committers have signed the CLA.

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

Labels

Community PR PRs from contributors that are not 'members' of the Qiskit repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants