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

Add remaining standard gates to rust representation #12566

Closed
35 of 38 tasks
mtreinish opened this issue Jun 13, 2024 · 3 comments · Fixed by #12709
Closed
35 of 38 tasks

Add remaining standard gates to rust representation #12566

mtreinish opened this issue Jun 13, 2024 · 3 comments · Fixed by #12709
Assignees
Labels
performance Rust This PR or issue is related to Rust code in the repository type: feature request New feature or request
Milestone

Comments

@mtreinish
Copy link
Member

mtreinish commented Jun 13, 2024

What should we add?

After #12459 has merged there is now a native rust representation of the standard gate library. However, due to the size of #12459 not all gates were added to this rust representation. This issue tracks the migration of the remaining gates so that we have the complete standard gate library in rust. The remaining gates are:

Tasks

@mtreinish mtreinish added type: feature request New feature or request performance Rust This PR or issue is related to Rust code in the repository labels Jun 13, 2024
@mtreinish mtreinish added this to the 1.2.0 milestone Jun 13, 2024
mtreinish added a commit to mtreinish/qiskit-core that referenced this issue Jun 13, 2024
This commit adds the rust representation of the U1Gate, U2Gate, and
U3Gate to the `StandardGates` enum in rust.

Part of Qiskit#12566
mtreinish added a commit to mtreinish/qiskit-core that referenced this issue Jun 14, 2024
This commit adds the rust representation of the U1Gate, U2Gate, and
U3Gate to the `StandardGates` enum in rust.

Part of Qiskit#12566
@ElePT
Copy link
Contributor

ElePT commented Jun 18, 2024

EDIT: All done now.
I will give a try to the following gates with the following indices in the table:

  • SGate -> 21
  • SdgGate -> 22
  • iSwapGate -> 23
  • SXGate -> 24
  • SXdgGate -> 25
  • TGate -> 26
  • TdgGate -> 27

mtreinish added a commit to mtreinish/qiskit-core that referenced this issue Jun 21, 2024
This commit adds the rust representation of the U1Gate, U2Gate, and
U3Gate to the `StandardGates` enum in rust.

Part of Qiskit#12566
github-merge-queue bot pushed a commit that referenced this issue Jun 24, 2024
* Add rust representation for the u1, u2, and u3 gates

This commit adds the rust representation of the U1Gate, U2Gate, and
U3Gate to the `StandardGates` enum in rust.

Part of #12566

* Update crates/circuit/src/imports.rs

Co-authored-by: Elena Peña Tapia <57907331+ElePT@users.noreply.github.com>

* Fix test failures

* Fix pylint pedantry

---------

Co-authored-by: Elena Peña Tapia <57907331+ElePT@users.noreply.github.com>
@eliarbel
Copy link
Contributor

Is MSGate here by accident?

@mtreinish
Copy link
Member Author

I just copied this from the list in the python code. We can skip MSGate since it shouldn't matter unless we need to generate it from Rust. Since it's mostly there for backwards compatibility and has been superseded by GMS we don't need to worry about it for this issue. It'll be easy to add in the future if the need arises.

@mtreinish mtreinish linked a pull request Jul 2, 2024 that will close this issue
Procatv pushed a commit to Procatv/qiskit-terra-catherines that referenced this issue Aug 1, 2024
* Add rust representation for the u1, u2, and u3 gates

This commit adds the rust representation of the U1Gate, U2Gate, and
U3Gate to the `StandardGates` enum in rust.

Part of Qiskit#12566

* Update crates/circuit/src/imports.rs

Co-authored-by: Elena Peña Tapia <57907331+ElePT@users.noreply.github.com>

* Fix test failures

* Fix pylint pedantry

---------

Co-authored-by: Elena Peña Tapia <57907331+ElePT@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
performance Rust This PR or issue is related to Rust code in the repository type: feature request New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants