-
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.
Improve speed of
Pauli.to_label
(#13379)
This uses Numpy vectorised operations and builtin Python tooling to remove Python-space loops from the Pauli label creation. This is a speed up of around 40x on my 2020 Intel MacBook Pro for most Paulis.
- Loading branch information
1 parent
5de6a00
commit b06c3cf
Showing
2 changed files
with
14 additions
and
18 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
--- | ||
features_quantum_info: | ||
- | | ||
The performance of :meth:`.Pauli.to_label` has significantly improved for large Paulis. |