Skip to content

Commit

Permalink
Fixed test with old configuration option
Browse files Browse the repository at this point in the history
  • Loading branch information
PabloAndresCQ committed Oct 23, 2024
1 parent 7ad5fc2 commit 7240e55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_cutensornet_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def test_config_options() -> None:
h = b1.process_circuit(
c,
scratch_fraction=0.3,
CONFIG_NUM_HYPER_SAMPLES=100,
tn_config={"num_hyper_samples": 100},
)
assert np.allclose(
b1.get_result(h).get_state(), np.asarray([1, 0, 0, 1]) * 1 / np.sqrt(2)
Expand All @@ -76,7 +76,7 @@ def test_config_options() -> None:
c,
n_shots=n_shots,
scratch_fraction=0.3,
CONFIG_NUM_HYPER_SAMPLES=100,
tn_config={"num_hyper_samples": 100},
)
assert res.get_shots().shape == (n_shots, 2)
assert np.isclose(res.get_counts()[(0, 0)] / n_shots, 0.5, atol=0.01)
Expand Down

0 comments on commit 7240e55

Please sign in to comment.