Skip to content

Commit

Permalink
add a test to check repr does not throw an error
Browse files Browse the repository at this point in the history
  • Loading branch information
ShellyGarion committed Dec 4, 2023
1 parent edff13c commit 378cfff
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/python/quantum_info/states/test_stabilizerstate.py
Original file line number Diff line number Diff line change
Expand Up @@ -980,6 +980,12 @@ def test_stabilizer_bell_equiv(self):
self.assertFalse(cliff1.equiv(cliff3))
self.assertFalse(cliff2.equiv(cliff4))

def test_visualize_does_not_throw_error(self):
"""Test to verify that drawing StabilizerState does not throw an error"""
clifford = random_clifford(3, seed=0)
stab = StabilizerState(clifford)
_ = repr(stab)


if __name__ == "__main__":
unittest.main()

0 comments on commit 378cfff

Please sign in to comment.