qiskit/test/python/pulse
Eli Arbel 056f2865cb
Deprecate Pulse package and dependencies (#13164)
* Deprecate classes, a couple functions & fix tests

* Deprecate classes, a couple functions & fix tests

* Deprecate some functionality that uses Pulse

* Filter deprecation warnings in QiskitTestCase

* Fix import path for deprecate_pulse_func

* Deprecate `schedule_circuit`

* Deprecate compiler's `schedule`, `sequence` and related functions

* Deprecate passing SchduleBlock(s) to qpy.dump

* More deprecations and misc updates

* Mark deprecated properties as such

* Add, refine and fix deprecations

Added deprecations in `dag_circuit.rs`
Added more deprecations in `builder.py`
Fixed some deprecations comments

* Add initial release notes and refine deprecations

* Warn about pulse gates serialization

* Handle deprecation warnings in unit testing

* Add alternative privates paths & refine deprecations

* Catch pulse deprecation warnings in certain methods

This commit adds `warnings.catch_warnings` blocks to some methods which
are not directly deprecated but otherwise use classes or methods which
are being deprecated. Adding this filter to specific methods which are
used in common workflow, e.g. transpilation and for which we don't want
pulse deprecations to be emitted if pulse is not used directly by the user.

* Misc changes to pulse deprecation functions  and release notes

* Fix lint issues

* Fix CI failure with Python 3.10 in `catch_warnings`

* Update releasenotes/notes/deprecate-pulse-package-07a621be1db7fa30.yaml

Co-authored-by: Elena Peña Tapia <57907331+ElePT@users.noreply.github.com>

* Indicate explicitly dependency removal or move to Dynamics

* Fix unit test failure

The inner class `TestAddCalibration` in `test_transpiler.py::TestTranspilerParallel` calls a deprecated functionality.
In an attempt to use `self.assertWarns` inside the inner class, a reference to the outer
class was stored as a class attribute of `TestAddCalibration`.  dill got confused as to how to serialize
the outer class which derives from `QiskitTestCase`. So switched to using `warnings.catch_warnnigs`
instead in the inner class to avoid this reference of the outer class in the serialized inner class.

* Standardize docstring of `deprecate_pulse_dependency`

---------

Co-authored-by: Elena Peña Tapia <57907331+ElePT@users.noreply.github.com>
2024-10-23 07:38:36 +00:00
..
__init__.py ScheduleBlock 4/4 - add ScheduleBlock (#6158) 2021-04-24 04:25:14 +00:00
test_block.py Deprecate Pulse package and dependencies (#13164) 2024-10-23 07:38:36 +00:00
test_builder.py Deprecate Pulse package and dependencies (#13164) 2024-10-23 07:38:36 +00:00
test_builder_v2.py Deprecate Pulse package and dependencies (#13164) 2024-10-23 07:38:36 +00:00
test_calibration_entries.py Deprecate Pulse package and dependencies (#13164) 2024-10-23 07:38:36 +00:00
test_channels.py Deprecate Pulse package and dependencies (#13164) 2024-10-23 07:38:36 +00:00
test_continuous_pulses.py Remove `qiskit.test` (#10998) 2024-01-31 14:11:41 +00:00
test_experiment_configurations.py Deprecate Pulse package and dependencies (#13164) 2024-10-23 07:38:36 +00:00
test_instruction_schedule_map.py Deprecate Pulse package and dependencies (#13164) 2024-10-23 07:38:36 +00:00
test_instructions.py Deprecate Pulse package and dependencies (#13164) 2024-10-23 07:38:36 +00:00
test_macros.py Deprecate Pulse package and dependencies (#13164) 2024-10-23 07:38:36 +00:00
test_parameter_manager.py Deprecate Pulse package and dependencies (#13164) 2024-10-23 07:38:36 +00:00
test_parser.py Deprecate Pulse package and dependencies (#13164) 2024-10-23 07:38:36 +00:00
test_pulse_lib.py Deprecate Pulse package and dependencies (#13164) 2024-10-23 07:38:36 +00:00
test_reference.py Deprecate Pulse package and dependencies (#13164) 2024-10-23 07:38:36 +00:00
test_samplers.py Deprecate Pulse package and dependencies (#13164) 2024-10-23 07:38:36 +00:00
test_schedule.py Deprecate Pulse package and dependencies (#13164) 2024-10-23 07:38:36 +00:00
test_transforms.py Deprecate Pulse package and dependencies (#13164) 2024-10-23 07:38:36 +00:00