-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Move PendingDeprecations to Deprecations in the circuit library #13604
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
We could just have a single reno for the deprecation of |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for taking care of this, this LGTM but it seems to only miss the catches in the tests 🙂
4eee40c
to
a76ebc7
Compare
Most of the problems are coming from an internal call to a deprecated method:
There is also some issues with
Still working on the rest. |
…to followup/13241/1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for all the hard work, the PR is in a very good shape.
The most important comment for 2.1: should we also deprecate the following quantum circuits (all of which have gate equivalents):ExactReciprocal
, LinearAmplitudeFunction
, QuantumVolume
, PhaseOracle
, GR
, GRX
, GRY
, GRZ
?
Less important for now (and can be done in a follow-up): we should update the the docstrings for the classes PiecewisePolynomialPauliRotationsGate
, zz_feature_map
, z_feature_map
(they refer to the quantum circuits that are being deprecated).
Less important for now (and should be done in a follow-up): multiple tests need to be updated to check gates/functions and not quantum circuits.
…bbf5179d7604ef608aed6#r2106219162
I think that there are some circuit library circuits that should be deprecated but were still not pending deprecated. Do you think it could be part of this PR? |
@ShellyGarion: these classes are already marked for deprecation in this PR -- they inherit from |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks again for working on this, Luciano and Julien. We have decided to leave the additional deprecations mentioned in #13604 (review) for a follow-up, so this is off to the merge queue.
…it#13604) * blueprint deprecation + reno * unittest test.python.transpiler.test_star_prerouting * test.python.transpiler.test_solovay_kitaev * test.python.transpiler.test_linear_functions_passes * unittest test.python.synthesis.test_qft_synthesis * test.python.synthesis.test_cz_synthesis * test.python.transpiler.test_parameterizedgate_translator * test.python.quantum_info.operators.test_operator * test.python.primitives.test_statevector_sampler * test.python.primitives.test_sampler * test.python.primitives.test_statevector_estimator * test.python.primitives.test_estimator * test.python.primitives.test_backend_sampler_v2 * test.python.primitives.test_backend_sampler * test.python.primitives.test_backend_estimator_v2 * test.python.primitives.test_backend_estimator * test.python.circuit.library.test_blueprintcircuit * test.python.transpiler.test_high_level_synthesis.TestHighLevelSynthesisModifiers.test_circuit_with_mcx * test.python.circuit.test_controlled_gate.TestControlledGate.test_mcxrecursive_clean_ancilla_cx_count * some less errors * capture the deprecations for internal usage * test.python.visualization.test_circuit_text_drawer.TestTextOpenControlledGate * test.python.circuit.library.test_boolean_logic * test.python.transpiler.test_swap_strategy_router * test.python.transpiler.test_high_level_synthesis * test.python.circuit.library.test_qft.TestQFT * test.python.circuit.test_controlled_gate.TestControlledGate * test.python.circuit.test_controlled_gate.TestControlledGate.test_mcxvchain_dirty_ancilla_action_only * test.python.circuit.test_controlled_gate.TestControlledGate * test.python.transpiler.test_high_level_synthesis * test.python.qasm2.test_export * EvolvedOperatorAnsatz * fix tests in circuit library * more controlled gate fixes * I can see light at the end of the tunnel * updating to 2.1 * black * filterwarnings * filterwarnings * last update of a since * pylint * test.python.circuit.library * Fix mcry and gray code deprecation msg * test.python.circuit.test_controlled_gate.TestControlledGate * test.python.circuit.test_controlled_gate.TestControlledStandardGates * qiskit/circuit/library/standard_gates/x.py:1533 * mpl.circuit.test_circuit_matplotlib_drawer.TestCircuitMatplotlibDrawer.test_cnot * https://github.com/Qiskit/qiskit/pull/13604/files/395658b3fbf603a7272bbf5179d7604ef608aed6#r2106219162 * addressing Qiskit#13604 (comment) --------- Co-authored-by: Julien Gacon <jules.gacon@googlemail.com>
Summary
The circuit library modernization from #13046 introduced some pending deprecations that this PR is moving to deprecations.
reno is still missing.