Skip to content

Conversation

georgios-ts
Copy link
Contributor

Summary

Correct the global phase of circuits synthesized by the TwoQubitBasisDecomposer.
Alternative for #5643 .

@georgios-ts georgios-ts requested review from chriseclectic and a team as code owners February 1, 2021 17:52
@kdk kdk added Changelog: Bugfix Include in the "Fixed" section of the changelog global-phase labels Feb 2, 2021
@kdk kdk added this to the 0.17 milestone Feb 2, 2021
Copy link
Member

@levbishop levbishop left a comment

Choose a reason for hiding this comment

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

This looks very good. Can you update TwoQubitWeylDecomposition.__repr__() to show the global phase?

Copy link
Member

@levbishop levbishop left a comment

Choose a reason for hiding this comment

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

Ready to merge as far as I am concerned. Thanks for this - I can see that it was more work than I would guessed because when I translated from mathematica I see I took some shortcuts about signs and factors of i

@mergify mergify bot merged commit 20bb390 into Qiskit:master Feb 3, 2021
@kdk kdk added the stable backport potential The bug might be minimal and/or import enough to be port to stable label Feb 5, 2021
mergify bot added a commit that referenced this pull request Feb 5, 2021
* global phase in TwoQubitBasisDecomposer

* bug fix and more tests

* update __repr__ and remove test

* lint

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
(cherry picked from commit 20bb390)
mtreinish added a commit that referenced this pull request Feb 5, 2021
* global phase in TwoQubitBasisDecomposer

* bug fix and more tests

* update __repr__ and remove test

* lint

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
(cherry picked from commit 20bb390)

Co-authored-by: georgios-ts <45130028+georgios-ts@users.noreply.github.com>
Co-authored-by: Matthew Treinish <mtreinish@kortar.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Changelog: Bugfix Include in the "Fixed" section of the changelog global-phase stable backport potential The bug might be minimal and/or import enough to be port to stable
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants