Skip to content

Commit

Permalink
image
Browse files Browse the repository at this point in the history
  • Loading branch information
SamFerracin committed Aug 15, 2024
1 parent 73414a1 commit 0a7d88a
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions test/integration/test_noise_learner.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@
from ..decorators import run_integration_test
from ..ibm_test_case import IBMIntegrationTestCase

# TODO: remove
image = "prim-custom-img-noise-learner-phase2:011970f47ce3fcfb08a2920426c343d06417a17e" # pylint: disable=invalid-name


class TestIntegrationNoiseLearner(IBMIntegrationTestCase):
"""Integration tests for NoiseLearner."""
Expand Down Expand Up @@ -66,7 +63,6 @@ def test_with_default_options(self, service): # pylint: disable=unused-argument

options = NoiseLearnerOptions()
learner = NoiseLearner(mode=backend, options=options)
learner.options.experimental = {"image": image}

job = learner.run(self.circuits)

Expand All @@ -83,7 +79,6 @@ def test_with_non_default_options(self, service): # pylint: disable=unused-argu
learner = NoiseLearner(mode=backend, options=options)

job = learner.run(self.circuits)
learner.options.experimental = {"image": image}

input_options = deepcopy(self.default_input_options)
input_options["max_layers_to_learn"] = 1
Expand All @@ -105,15 +100,13 @@ def test_in_session(self, service):
with Session(service, backend) as session:
options.twirling_strategy = "all"
learner1 = NoiseLearner(mode=session, options=options)
learner1.options.experimental = {"image": image}
job1 = learner1.run(self.circuits)

input_options["twirling_strategy"] = "all"
self._verify(job1, input_options, 2)

options.twirling_strategy = "active-circuit"
learner2 = NoiseLearner(mode=session, options=options)
learner2.options.experimental = {"image": image}
job2 = learner2.run(self.circuits)

input_options["twirling_strategy"] = "active-circuit"
Expand All @@ -127,7 +120,6 @@ def test_with_no_layers(self, service): # pylint: disable=unused-argument
options = NoiseLearnerOptions()
options.max_layers_to_learn = 0
learner = NoiseLearner(mode=backend, options=options)
learner.options.experimental = {"image": image}

job = learner.run(self.circuits)

Expand All @@ -146,7 +138,6 @@ def test_learner_plus_estimator(self, service): # pylint: disable=unused-argume
options.resilience.zne_mitigation = True # pylint: disable=assigning-non-slot
options.resilience.zne.amplifier = "pea"
options.resilience.layer_noise_learning.layer_pair_depths = [0, 1]
options.experimental = {"image": image}

pubs = [(c, "Z" * c.num_qubits) for c in self.circuits]

Expand Down

0 comments on commit 0a7d88a

Please sign in to comment.