-
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.
Add an equiv method to the StabilizerState class (#9543)
* add equiv method to StabilizerState class * add a test for equiv method * add release notes * add explanantion to the tests * update comment in tests * updates following review * update exp_val calculation * updates following review --------- Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
- Loading branch information
1 parent
d4006dd
commit 8ec6749
Showing
3 changed files
with
94 additions
and
1 deletion.
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
8 changes: 8 additions & 0 deletions
8
releasenotes/notes/add-equiv-stabilizerstate-6ef8790c765690c1.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,8 @@ | ||
--- | ||
features: | ||
- | | ||
Added the method :class:`.StabilizerState.equiv`, | ||
that checks if the generating sets of two stabilizer states generate the same stabilizer group. | ||
For example, the stabilizer group of the two-qubit Bell state contains the four elements | ||
:math:`\{II, XX, -YY, ZZ\}` and hence can be generated by either :math:`[XX, ZZ]`, | ||
:math:`[XX, -YY]` or :math:`[-YY, ZZ]`. |
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