Skip to content

Commit

Permalink
fix: removed expectation val err test
Browse files Browse the repository at this point in the history
  • Loading branch information
BrunoLiegiBastonLiegi committed Jun 10, 2024
1 parent a788de3 commit 5aaf8c4
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions tests/test_tomography_gate_set_tomography.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,20 +159,6 @@ def test__get_observable(j, nqubits):
assert groundtruth == prepared_observable


def test_expectation_value_nqubits_error(backend):
nqubits = 3
test_circuit = qibo.models.Circuit(nqubits)
test_circuit.add(gates.TOFFOLI(0, 1, 2))
test_circuit.add(gates.M(*np.arange(0, nqubits, 1)))
with pytest.raises(ValueError):
expectation_val = _expectation_value(
test_circuit,
1,
nshots=int(1e4),
backend=backend,
)


@pytest.mark.parametrize(
"nqubits, gate",
[
Expand Down

0 comments on commit 5aaf8c4

Please sign in to comment.