Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
arsalan-motamedi committed Oct 15, 2024
1 parent af395f4 commit 42f13e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_lab_dev/test_states/test_states_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ def test_to_from_quadrature(self):
assert math.allclose(ctest2, c0)

psi = Ket.random([0])
assert psi.to_quadrature()._index_representation == {0: ('Q', 0)}
assert psi.to_quadrature()._index_representation == {0: ("Q", 0)}

def test_L2_norm(self):
state = Coherent([0], x=1)
Expand Down Expand Up @@ -585,7 +585,7 @@ def test_to_from_quadrature(self):
assert np.allclose(ctest2, c0)

rho = DM.random([0])
assert rho.to_quadrature()._index_representation == {0: ('Q', 0), 1: ('Q', 0)}
assert rho.to_quadrature()._index_representation == {0: ("Q", 0), 1: ("Q", 0)}

def test_L2_norms(self):
state = Coherent([0], x=1).dm() + Coherent([0], x=-1).dm() # incoherent
Expand Down

0 comments on commit 42f13e8

Please sign in to comment.