Skip to content
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

Change 1q UnitaryGate definition to use U instead of U3 #10597

Merged
merged 4 commits into from
Aug 10, 2023

Conversation

jaygambetta
Copy link
Member

Summary

Replaced U3 with U gate so that when I decompose it uses U not U3 as U is the gate going forward.

Details and comments

Removing U3 from unitary and moving it to the U gate
@jaygambetta jaygambetta requested a review from a team as a code owner August 9, 2023 17:39
@qiskit-bot
Copy link
Collaborator

One or more of the the following people are requested to review this:

  • @Qiskit/terra-core

@coveralls
Copy link

coveralls commented Aug 9, 2023

Pull Request Test Coverage Report for Build 5814691289

  • 3 of 3 (100.0%) changed or added relevant lines in 1 file are covered.
  • 15 unchanged lines in 3 files lost coverage.
  • Overall coverage decreased (-0.01%) to 87.241%

Files with Coverage Reduction New Missed Lines %
crates/qasm2/src/expr.rs 1 93.76%
crates/qasm2/src/lex.rs 2 91.14%
crates/qasm2/src/parse.rs 12 96.67%
Totals Coverage Status
Change from base Build 5812842422: -0.01%
Covered Lines: 74246
Relevant Lines: 85104

💛 - Coveralls

Copy link
Member

@mtreinish mtreinish left a comment

Choose a reason for hiding this comment

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

Thanks for pushing this. The code itself LGTM and is probably long overdue.

The only thing that I think is missing is probably a release note so that we can document the change as part of the next qiskit release. If you could add one that just documents the definition of UnitaryGate for single qubit unitaries is now in terms of UGate instead of the legacy U3Gate class that either as an upgrade or an other section note. The process for adding a release note is documented here: https://github.com/Qiskit/qiskit-terra/blob/main/CONTRIBUTING.md#release-notes

@jaygambetta
Copy link
Member Author

should be done

@mtreinish mtreinish added the Changelog: API Change Include in the "Changed" section of the changelog label Aug 10, 2023
Copy link
Member

@mtreinish mtreinish left a comment

Choose a reason for hiding this comment

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

Thanks for the quick update adding the release note. This LGTM now

@mtreinish mtreinish added this pull request to the merge queue Aug 10, 2023
@mtreinish mtreinish changed the title Cleaning up U3 in the unitary extension Change 1q UnitaryGate definition to use U instead of U3 Aug 10, 2023
Merged via the queue into Qiskit:main with commit 77801c8 Aug 10, 2023
13 checks passed
SamD-1998 pushed a commit to SamD-1998/qiskit-terra that referenced this pull request Sep 7, 2023
* Clean up to use U vs U3

Removing U3 from unitary and moving it to the U gate

* fixing test

* Create unitary-u-not-u3-0a32c2d968f7890e.yaml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Changelog: API Change Include in the "Changed" section of the changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants