-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Closed
Labels
RustThis PR or issue is related to Rust code in the repositoryThis PR or issue is related to Rust code in the repositorygood first issueGood for newcomersGood for newcomerstype: feature requestNew feature or requestNew feature or request
Description
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.
Metadata
Metadata
Assignees
Labels
RustThis PR or issue is related to Rust code in the repositoryThis PR or issue is related to Rust code in the repositorygood first issueGood for newcomersGood for newcomerstype: feature requestNew feature or requestNew feature or request
Type
Projects
Status
Done