forked from Qiskit/qiskit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
limiting matrix-based commutativity check (Qiskit#10495)
* limiting matrix-based commutativity check * adding tests with the order of gates fixed * lint tweaks * improved released notes
- Loading branch information
1 parent
6751b85
commit 05884a6
Showing
3 changed files
with
50 additions
and
3 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
14 changes: 14 additions & 0 deletions
14
releasenotes/notes/add-limits-in-commutation-checker-66a1b9e90921621f.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,14 @@ | ||
--- | ||
features: | ||
- | | ||
Added a new option ``max_num_qubits`` to :meth:`qiskit.circuit.CommutationChecker.commute` | ||
that specifies the maximum number of qubits to consider for the more expensive | ||
matrix multiplication-based commutativity check. This avoids trying to | ||
internally allocate arrays of size :math:`2^N \times 2^N`. Simpler versions of commutativity | ||
check (for instance, two quantum operations commute when they are over disjoint sets of qubits) | ||
continue to work without this limit. | ||
fixes: | ||
- | | ||
The maximum number of qubits to consider for matrix multiplication-based commutativity check | ||
in :class:`~.CommutationChecker` is now limited to 3 by default. | ||
Fixed `#10488 <https://github.com/Qiskit/qiskit-terra/issues/10488>`__ |
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