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

Port QuantumCircuit.count_ops() to rust #12971

Closed
mtreinish opened this issue Aug 16, 2024 · 3 comments
Closed

Port QuantumCircuit.count_ops() to rust #12971

mtreinish opened this issue Aug 16, 2024 · 3 comments
Assignees
Labels
good first issue Good for newcomers Rust This PR or issue is related to Rust code in the repository type: feature request New feature or request

Comments

@mtreinish
Copy link
Member

What should we add?

Right now the QuantumCircuit.count_ops() method is written in Python by iterating over the circuit data and collecting counts in a dictionary, sorting it by gate name and returning that dictionary. However, the underlying data is stored in rust's CircuitData struct and it would be much more efficient to do the counting and in rust. We should port this utility method to rust to provide and provide a significant speedup for the method.

@mtreinish mtreinish added good first issue Good for newcomers type: feature request New feature or request Rust This PR or issue is related to Rust code in the repository labels Aug 16, 2024
@github-project-automation github-project-automation bot moved this to Tagged but unassigned in Contributor Monitoring Aug 16, 2024
@melechlapson
Copy link
Contributor

@mtreinish I can work on this issue

@mtreinish
Copy link
Member Author

Cool, thanks I've assign the issue to you.

@mtreinish
Copy link
Member Author

Implemented by #13050

@github-project-automation github-project-automation bot moved this from Assigned to Done in Contributor Monitoring Sep 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers Rust This PR or issue is related to Rust code in the repository type: feature request New feature or request
Projects
Status: Done
Development

No branches or pull requests

2 participants