-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Port the count_ops method in QuantumCircuit to Rust (#13050)
* added get_ops method to CircuitData Rust class * Updated count_ops method in QuantumCircuit * remove extra indexmap dependency * fixed linting issues * moved import * removed return statement * updated method names * added release note * add blank line * revert changes to Cargo.lock * removed unnecessary features * Apply suggestions from Matthew's review Co-authored-by: Matthew Treinish <[email protected]> * added docstring to count_ops method * Update crates/circuit/src/circuit_data.rs Co-authored-by: Matthew Treinish <[email protected]> --------- Co-authored-by: Matthew Treinish <[email protected]>
- Loading branch information
1 parent
623415c
commit 5fc1635
Showing
3 changed files
with
24 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
releasenotes/notes/port-countops-method-3ad362c20b13182c.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
features_circuits: | ||
- | | ||
The :meth:`~.QuantumCircuit.count_ops` method in :class:`.QuantumCircuit` | ||
has been re-written in Rust. It now runs between 3 and 9 times faster. |