-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Deprecate qiskit/quantum_info/synthesis and move to qiskit/synthesis #11460
Conversation
One or more of the the following people are requested to review this:
|
Pull Request Test Coverage Report for Build 7627549240
💛 - Coveralls |
…/synthesis/one_qubit
Like the deprecation of |
releasenotes/notes/deprecate-qinfo-synthesis-23abd8c34fc0f52e.yaml
Outdated
Show resolved
Hide resolved
|
||
warnings.warn( | ||
"The qiskit.quantum_info.synthesis module is deprecated since Qiskit 0.46.0." | ||
"It will be removed in Qiskit 1.0 release.", |
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.
"It will be removed in Qiskit 1.0 release.", | |
"It will be removed in the Qiskit 1.0 release.", |
cnot_rxx_decompose(plus_ry=True, plus_rxx=False), | ||
cnot_rxx_decompose(plus_ry=False, plus_rxx=True), | ||
cnot_rxx_decompose(plus_ry=False, plus_rxx=False), | ||
_cnot_rxx_decompose(), |
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.
Now that this is a private method, do we still need to test it or is it tested enough in the context of the composer? If yes, I'd think we can skip testing this
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.
LGTM!
@Mergifyio backport stable/0.46 |
✅ Backports have been created
|
…11460) * remove deprecated code in clifford_decompose and cnotdihedral_decompose * move tests from test/python/quantum_info to test/python/synthesis * move the Quaternion class from quantum_info/synthesis to quantum_info * deprecate cnot_rxx_decompose, and move to an internal code in the equivalence_library * deprecate cnot_rxx_decompose * move qsd from qiskit/quantum_info/synthesis to qiskit/synthesis/unitary * handle lint and docs errors in qsd * handle lint and docs errors in qsd * handle lint and docs errors in qsd * handle lint and docs errors in qsd * handle lint and docs errors in qsd * handle cyclic imports in qsd * minor * update qsd docs * move one_qubit_decompose from qiskit/quantum_info/synthesis to qiskit/synthesis/one_qubit * move xx_decompose from qiskit/quantum_info/synthesis to qiskit/synthesis/two_qubits * handle cyclic imports * move two-qubit synthesis code from qiskit/quantum_info/synthesis to qiskit/synthesis/two_qubits * update qsd docs * minor * add release notes * updates following review * add disable cyclic import to rv.py * add deprecation warning in qiskit/quantum_info/__init__.py * fix links * improve qsd docs following review * update qsd after review * change pending deprecatrion to deprecation in ion_decompose * update release notes following review * update pending deprecation to deprecation * add test for a deprecation * add more tests for deprecations * add another test for deprecation * handle lint errors * minor fix following review * remove test for _cnot_rxx_decompose() private method (cherry picked from commit 8887f44) # Conflicts: # qiskit/synthesis/__init__.py # qiskit/transpiler/synthesis/qsd.py # test/benchmarks/random_circuit_hex.py
…(backport #11460) (#11635) * Deprecate qiskit/quantum_info/synthesis and move to qiskit/synthesis (#11460) * remove deprecated code in clifford_decompose and cnotdihedral_decompose * move tests from test/python/quantum_info to test/python/synthesis * move the Quaternion class from quantum_info/synthesis to quantum_info * deprecate cnot_rxx_decompose, and move to an internal code in the equivalence_library * deprecate cnot_rxx_decompose * move qsd from qiskit/quantum_info/synthesis to qiskit/synthesis/unitary * handle lint and docs errors in qsd * handle lint and docs errors in qsd * handle lint and docs errors in qsd * handle lint and docs errors in qsd * handle lint and docs errors in qsd * handle cyclic imports in qsd * minor * update qsd docs * move one_qubit_decompose from qiskit/quantum_info/synthesis to qiskit/synthesis/one_qubit * move xx_decompose from qiskit/quantum_info/synthesis to qiskit/synthesis/two_qubits * handle cyclic imports * move two-qubit synthesis code from qiskit/quantum_info/synthesis to qiskit/synthesis/two_qubits * update qsd docs * minor * add release notes * updates following review * add disable cyclic import to rv.py * add deprecation warning in qiskit/quantum_info/__init__.py * fix links * improve qsd docs following review * update qsd after review * change pending deprecatrion to deprecation in ion_decompose * update release notes following review * update pending deprecation to deprecation * add test for a deprecation * add more tests for deprecations * add another test for deprecation * handle lint errors * minor fix following review * remove test for _cnot_rxx_decompose() private method (cherry picked from commit 8887f44) # Conflicts: # qiskit/synthesis/__init__.py # qiskit/transpiler/synthesis/qsd.py # test/benchmarks/random_circuit_hex.py * fix merge conflicts * fix merge conflicts * minor fix * update release notes --------- Co-authored-by: Shelly Garion <46566946+ShellyGarion@users.noreply.github.com> Co-authored-by: Shelly Garion <shelly@il.ibm.com>
Summary
Deprecate
qiskit/quantum_info/synthesis
and move toqiskit/synthesis
:qsd
toqiskit/synthesis/unitary
OneQubitEulerDecomposer
toqiskit/synthesis/one_qubit
XXDecomposer
,TwoQubitBasisDecomposer
andtwo_qubit_cnot_decompose
toqiskit/synthesis/two_qubits
(the latter function is removed from the docs, since it has no docstring)Except of the following:
decompose_clifford
anddecompose_cnotdihedral
since they have already been deprecated in a previous release.cnot_rxx_decompose
and use it as an internal function in theequivalence_library
.Quaternion
class toquantum_info
.Details and comments
After #11426 and this PR will be merged, it will be possible to close the following issues:
close #4311
close #4699
close #9667
partially handles #7986