Skip to content

Commit

Permalink
remove those comments
Browse files Browse the repository at this point in the history
  • Loading branch information
1ucian0 committed Jul 25, 2024
1 parent cd21d30 commit f34620c
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions test/python/compiler/test_assembler.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ def setUp(self):
self.circ.measure(qr, cr)

with self.assertWarns(DeprecationWarning):
# Ignorable, because assemble and BackendV1 are deprecated
self.backend = Fake5QV1()
self.backend_config = self.backend.configuration()
self.num_qubits = self.backend_config.n_qubits
Expand Down Expand Up @@ -553,7 +552,6 @@ def test_pulse_gates_single_circ(self):
circ.add_calibration(RxGate(3.14), [1], x180)

with self.assertWarns(DeprecationWarning):
# Ignorable, because assemble and BackendV1 are deprecated
qobj = assemble(circ, FakeOpenPulse2Q())
# Only one circuit, so everything is stored at the job level
cals = qobj.config.calibrations
Expand All @@ -576,7 +574,6 @@ def test_custom_pulse_gates_single_circ(self):
circ.add_calibration("h", [0], custom_h_schedule)

with self.assertWarns(DeprecationWarning):
# Ignorable, because assemble and BackendV1 are deprecated
qobj = assemble(circ, FakeOpenPulse2Q())
lib = qobj.config.pulse_library
self.assertEqual(len(lib), 1)
Expand All @@ -596,7 +593,6 @@ def test_pulse_gates_with_parameteric_pulses(self):
circ.add_calibration("h", [0], custom_h_schedule)

with self.assertWarns(DeprecationWarning):
# Ignorable, because assemble and BackendV1 are deprecated
backend = FakeOpenPulse2Q()
backend.configuration().parametric_pulses = ["drag"]
with self.assertWarns(DeprecationWarning):
Expand Down Expand Up @@ -641,7 +637,6 @@ def test_pulse_gates_common_cals(self):
circ2.add_calibration(RxGate(3.14), [1], dummy_sched)

with self.assertWarns(DeprecationWarning):
# Ignorable, because assemble and BackendV1 are deprecated
qobj = assemble([circ, circ2], FakeOpenPulse2Q())
# Identical pulses are only added once
self.assertEqual(len(qobj.config.pulse_library), 1)
Expand Down Expand Up @@ -669,7 +664,6 @@ def test_pulse_gates_delay_only(self):
test_sched = pulse.Delay(64, DriveChannel(0)) + pulse.Delay(160, DriveChannel(0))
circ.add_calibration("test", [0], test_sched)
with self.assertWarns(DeprecationWarning):
# Ignorable, because assemble and BackendV1 are deprecated
qobj = assemble(circ, FakeOpenPulse2Q())
self.assertEqual(len(qobj.config.calibrations.gates[0].instructions), 2)
self.assertEqual(
Expand Down Expand Up @@ -983,7 +977,6 @@ class TestPulseAssembler(QiskitTestCase):
def setUp(self):
super().setUp()
with self.assertWarns(DeprecationWarning):
# Ignorable, because assemble and BackendV1 are deprecated
self.backend = FakeOpenPulse2Q()
self.backend_config = self.backend.configuration()

Expand Down Expand Up @@ -1293,7 +1286,6 @@ def test_pulse_name_conflicts(self):
def test_pulse_name_conflicts_in_other_schedule(self):
"""Test two pulses with the same name in different schedule can be resolved."""
with self.assertWarns(DeprecationWarning):
# Ignorable, because assemble and BackendV1 are deprecated
backend = Fake27QPulseV1()
defaults = backend.defaults()

Expand Down Expand Up @@ -1403,7 +1395,6 @@ def test_assemble_parametric(self):
<< sched.duration
)
with self.assertWarns(DeprecationWarning):
# Ignorable, because assemble and BackendV1 are deprecated
backend = FakeOpenPulse3Q()
backend.configuration().parametric_pulses = [
"gaussian",
Expand Down Expand Up @@ -1452,7 +1443,6 @@ def test_assemble_parametric_unsupported(self):
sched += Play(pulse.Constant(duration=25, amp=1), DriveChannel(2))

with self.assertWarns(DeprecationWarning):
# Ignorable, because assemble and BackendV1 are deprecated
backend = FakeOpenPulse3Q()
backend.configuration().parametric_pulses = ["something_extra"]

Expand All @@ -1466,7 +1456,6 @@ def test_assemble_parametric_unsupported(self):
def test_assemble_parametric_pulse_kwarg_with_backend_setting(self):
"""Test that parametric pulses respect the kwarg over backend"""
with self.assertWarns(DeprecationWarning):
# Ignorable, because assemble and BackendV1 are deprecated
backend = Fake27QPulseV1()

qc = QuantumCircuit(1, 1)
Expand All @@ -1484,7 +1473,6 @@ def test_assemble_parametric_pulse_kwarg_with_backend_setting(self):
def test_assemble_parametric_pulse_kwarg_empty_list_with_backend_setting(self):
"""Test that parametric pulses respect the kwarg as empty list over backend"""
with self.assertWarns(DeprecationWarning):
# Ignorable, because assemble and BackendV1 are deprecated
backend = Fake27QPulseV1()

qc = QuantumCircuit(1, 1)
Expand Down Expand Up @@ -1843,7 +1831,6 @@ def setUp(self):
self.schedule = pulse.Schedule(name="fake_experiment")

with self.assertWarns(DeprecationWarning):
# Ignorable, because assemble and BackendV1 are deprecated
self.backend = FakeOpenPulse2Q()
self.config = self.backend.configuration()
self.defaults = self.backend.defaults()
Expand Down Expand Up @@ -1986,7 +1973,6 @@ def test_missing_lo_ranges(self):
def test_unsupported_meas_level(self):
"""Test that assembly raises an error if meas_level is not supported"""
with self.assertWarns(DeprecationWarning):
# Ignorable, because assemble and BackendV1 are deprecated
backend = FakeOpenPulse2Q()
backend.configuration().meas_levels = [1, 2]
with self.assertRaises(QiskitError), self.assertWarns(DeprecationWarning):
Expand All @@ -2008,7 +1994,6 @@ def test_unsupported_meas_level(self):
def test_single_and_deprecated_acquire_styles(self):
"""Test that acquires are identically combined with Acquires that take a single channel."""
with self.assertWarns(DeprecationWarning):
# Ignorable, because assemble and BackendV1 are deprecated
backend = FakeOpenPulse2Q()
new_style_schedule = Schedule()
acq_dur = 1200
Expand Down

0 comments on commit f34620c

Please sign in to comment.