Skip to content

Commit

Permalink
Increase timeout in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pehamTom committed Sep 9, 2024
1 parent 7e949c9 commit c1e973b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/python/circuit_synthesis/test_encoder_synthesis.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def test_gate_optimal_encoding_consistent(code: CSSCode, request) -> None: # ty
"""Check that `gate_optimal_encoding_circuit` returns a valid circuit with the correct stabilizers."""
code = request.getfixturevalue(code)

encoder, encoding_qubits = gate_optimal_encoding_circuit(code, max_timeout=1, min_gates=3, max_gates=10)
encoder, encoding_qubits = gate_optimal_encoding_circuit(code, max_timeout=5, min_gates=3, max_gates=10)
assert encoder.num_qubits == code.n

_assert_correct_encoding_circuit(encoder, encoding_qubits, code)
Expand All @@ -122,7 +122,7 @@ def test_depth_optimal_encoding_consistent(code: CSSCode, request) -> None: # t
"""Check that `gate_optimal_encoding_circuit` returns a valid circuit with the correct stabilizers."""
code = request.getfixturevalue(code)

encoder, encoding_qubits = depth_optimal_encoding_circuit(code, max_timeout=1)
encoder, encoding_qubits = depth_optimal_encoding_circuit(code, max_timeout=5)
assert encoder.num_qubits == code.n

_assert_correct_encoding_circuit(encoder, encoding_qubits, code)

0 comments on commit c1e973b

Please sign in to comment.