mirror of https://github.com/Qiskit/qiskit.git
056f2865cb
* 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> |
||
---|---|---|
.. | ||
__init__.py | ||
test_block.py | ||
test_builder.py | ||
test_builder_v2.py | ||
test_calibration_entries.py | ||
test_channels.py | ||
test_continuous_pulses.py | ||
test_experiment_configurations.py | ||
test_instruction_schedule_map.py | ||
test_instructions.py | ||
test_macros.py | ||
test_parameter_manager.py | ||
test_parser.py | ||
test_pulse_lib.py | ||
test_reference.py | ||
test_samplers.py | ||
test_schedule.py | ||
test_transforms.py |