Skip to content
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

Apply new deprecation decorators to dagcircuit folder #9874

Merged
merged 5 commits into from
May 10, 2023

Conversation

Eric-Arellano
Copy link
Collaborator

Summary

See #9676 for the motivation.

Details and comments

@Eric-Arellano Eric-Arellano added the Changelog: None Do not include in changelog label Mar 29, 2023
@qiskit-bot
Copy link
Collaborator

Thank you for opening a new pull request.

Before your PR can be merged it will first need to pass continuous integration tests and be reviewed. Sometimes the review process can be slow, so please be patient.

While you're waiting, please feel free to review other open PRs. While only a subset of people are authorized to approve pull requests for merging, everyone is encouraged to review open pull requests. Doing reviews helps reduce the burden on the core team and helps make the project's code better for everyone.

One or more of the the following people are requested to review this:

  • @Qiskit/terra-core

@coveralls
Copy link

coveralls commented Mar 29, 2023

Pull Request Test Coverage Report for Build 4863815032

  • 2 of 2 (100.0%) changed or added relevant lines in 1 file are covered.
  • 18 unchanged lines in 4 files lost coverage.
  • Overall coverage decreased (-0.01%) to 85.911%

Files with Coverage Reduction New Missed Lines %
qiskit/dagcircuit/dagnode.py 1 89.19%
crates/qasm2/src/lex.rs 3 90.38%
crates/qasm2/src/parse.rs 6 97.58%
crates/accelerate/src/vf2_layout.rs 8 86.44%
Totals Coverage Status
Change from base Build 4862959128: -0.01%
Covered Lines: 71047
Relevant Lines: 82698

💛 - Coveralls

@Eric-Arellano Eric-Arellano marked this pull request as ready for review March 29, 2023 20:48
@Eric-Arellano Eric-Arellano requested review from a team and woodsp-ibm as code owners March 29, 2023 20:48
@1ucian0 1ucian0 added the type: qa Issues and PRs that relate to testing and code quality label Mar 30, 2023
@Eric-Arellano Eric-Arellano added this to the 0.24.0 milestone Apr 10, 2023
@1ucian0 1ucian0 self-assigned this Apr 13, 2023
qiskit/assembler/run_config.py Outdated Show resolved Hide resolved
qiskit/dagcircuit/dagcircuit.py Outdated Show resolved Hide resolved
qiskit/dagcircuit/dagnode.py Outdated Show resolved Hide resolved
@mtreinish mtreinish added the stable backport potential The bug might be minimal and/or import enough to be port to stable label Apr 20, 2023
@@ -73,7 +73,6 @@ def semantic_eq(node1, node2, bit_indices1=None, bit_indices2=None):
"release will require the mappings to be provided as arguments.",
DeprecationWarning,
)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, didn't mean to do this. Doesn't seem worth a CI burn though - this code path will be deleted soon (deprecation is from 0.20)

@Eric-Arellano Eric-Arellano changed the title Apply new deprecation decorators to assembler, compiler, and dagcircuit folders Apply new deprecation decorators to dagcircuit folder May 2, 2023
@mtreinish mtreinish modified the milestones: 0.24.0, 0.24.1 May 4, 2023
"removed no earlier than 3 months after the release date. You should use the "
"DAGCircuit.copy_empty_like method instead, which acts identically.",
@deprecate_func(
additional_msg="Instead, use :meth:`~copy_empty_like()`, which acts identically.",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it work with ()?

Suggested change
additional_msg="Instead, use :meth:`~copy_empty_like()`, which acts identically.",
additional_msg="Instead, use :meth:`~copy_empty_like`, which acts identically.",

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://www.sphinx-doc.org/en/master/usage/restructuredtext/domains.html#role-py-func

The role text needs not include trailing parentheses to enhance readability; they will be added automatically by Sphinx if the add_function_parentheses config value is True (the default).

Copy link
Member

@1ucian0 1ucian0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@1ucian0 1ucian0 added this pull request to the merge queue May 10, 2023
Merged via the queue into Qiskit:main with commit 94eea5c May 10, 2023
mergify bot pushed a commit that referenced this pull request May 10, 2023
* Apply new deprecation decorators to assembler, compiler, and dagcircuit folders

* Fix quantum_instance.py triggering deprecation for max_credits

* Review feedback

* Fmt - oops

(cherry picked from commit 94eea5c)
@Eric-Arellano Eric-Arellano deleted the apply-deprecations-assembler branch May 10, 2023 21:55
1ucian0 pushed a commit that referenced this pull request May 11, 2023
* Apply new deprecation decorators to assembler, compiler, and dagcircuit folders

* Fix quantum_instance.py triggering deprecation for max_credits

* Review feedback

* Fmt - oops

(cherry picked from commit 94eea5c)

Co-authored-by: Eric Arellano <14852634+Eric-Arellano@users.noreply.github.com>
king-p3nguin pushed a commit to king-p3nguin/qiskit-terra that referenced this pull request May 22, 2023
* Apply new deprecation decorators to assembler, compiler, and dagcircuit folders

* Fix quantum_instance.py triggering deprecation for max_credits

* Review feedback

* Fmt - oops
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Changelog: None Do not include in changelog stable backport potential The bug might be minimal and/or import enough to be port to stable type: qa Issues and PRs that relate to testing and code quality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants