-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Performance, Refactor] Operator multiplication without explicit iden…
…tities (#268) Refactors the `operator_product` function that does not require explicit identity padding. Also refactors the `apply_density_mat` into a new `apply_operator_dm` without explicit identities. The logic of both is similar, and the logic of `apply_operator_dm` is very similar to `apply_operator_permute`, but keeping everything separate for now. The reason not to use `operator_product` inside `apply_operator_dm` is to avoid permuting the qubits twice. The new functions are similar in performance for small number of qubits. For 5 to 9 qubits they become a few times faster. For 12 qubits the speedup is already ~10x.
- Loading branch information
1 parent
59ba67c
commit bde458d
Showing
5 changed files
with
159 additions
and
91 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
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
Oops, something went wrong.