Skip to content

Commit d01ff34

Browse files
committedOct 22, 2024
fix: updated shape in test state decoding
1 parent f6510f0 commit d01ff34

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎tests/test_models_decoding.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ def test_state_layer(backend):
2222
layer = dec.State(nqubits, backend=backend)
2323
c = random_clifford(nqubits, backend=backend)
2424
real, im = layer(c)
25-
backend.assert_allclose(real + 1j * im, backend.execute_circuit(c).state())
25+
backend.assert_allclose(
26+
(real + 1j * im).ravel(), backend.execute_circuit(c).state().ravel()
27+
)
2628

2729

2830
@pytest.mark.parametrize("analytic", [True, False])

0 commit comments

Comments
 (0)