Skip to content

Commit

Permalink
tests: added single qubit parametrized tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesclark-Zapata committed Oct 12, 2023
1 parent 500146f commit eb27f38
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/orquestra/braket/simulator_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,11 @@ def test_braket_local_wf_simulator_fulfills_circuit_runner_contracts(contract):
assert contract(simulator)


@pytest.mark.parametrize("contract", simulator_gate_compatibility_contracts())
@pytest.mark.local
# Braket doesn't support the RH gate, so we're excluding it from the test set.
@pytest.mark.parametrize(
"contract", simulator_gate_compatibility_contracts(gates_to_exclude=["RH"])
)
def test_braket_simulator_uses_correct_gate_definitionscontract(contract):
simulator = braket_local_simulator()
assert contract(simulator)

0 comments on commit eb27f38

Please sign in to comment.