Add an equiv method to the StabilizerState class #9338
Labels
mod: quantum info
Related to the Quantum Info module (States & Operators)
type: feature request
New feature or request
What should we add?
Add an
equiv
method to theStabilizerState
class, that checks if the generating sets of two stabilizer states generate the same stabilizer group.This can be done as follows:
The first step would be to check that each stabilizer from the first set commutes with each stabilizer from the second set.
If no, the two sets give rise to different stabilizer states. If yes, compute the expected value of each stabilizer from the first set on the stabilizer state determined by the second set. The two stabilizer states coincide iff the expected value is +1 for each stabilizer.
See also: #5907 (comment)
The text was updated successfully, but these errors were encountered: