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

Remove execute() function #11565

Merged
merged 13 commits into from
Jan 24, 2024
Merged

Remove execute() function #11565

merged 13 commits into from
Jan 24, 2024

Conversation

1ucian0
Copy link
Member

@1ucian0 1ucian0 commented Jan 15, 2024

Summary

Removal of execute which was deprecated in 0.46 #11044

@1ucian0 1ucian0 requested review from eggerdj, wshanks, a team, ikkoham and jyu00 as code owners January 15, 2024 13:35
@qiskit-bot
Copy link
Collaborator

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

  • @Cryoris
  • @Qiskit/terra-core
  • @ajavadia
  • @ikkoham
  • @nkanazawa1989

Copy link
Contributor

@ElePT ElePT left a comment

Choose a reason for hiding this comment

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

LGTM (once the lint/docs complaints are fixed). I anticipate some conflicts with #11422 just because we modify the same files, but they should be relatively easy to handle.

@@ -11,10 +11,10 @@
# that they have been altered from the originals.

"""
Example showing how to use Qiskit-Terra at level 0 (novice).
Example showing how to use Qiskit at level 0 (no optimization).
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think that "level 0" referred to the optimization level, I think that this was intended as a beginner-level example (maybe remove the mention to level 0 altogether?)

Copy link
Member Author

@1ucian0 1ucian0 Jan 16, 2024

Choose a reason for hiding this comment

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

oooohh... that totally makes sense. I changed for how to use Qiskit at introduction level. in 2821c48

examples/python/using_qiskit_terra_level_0.py Outdated Show resolved Hide resolved
@ElePT ElePT added this to the 1.0.0 milestone Jan 16, 2024
@ElePT ElePT added the Changelog: Removal Include in the Removed section of the changelog label Jan 16, 2024
@1ucian0 1ucian0 requested a review from nonhermitian as a code owner January 16, 2024 10:28
@coveralls
Copy link

coveralls commented Jan 16, 2024

Pull Request Test Coverage Report for Build 7638982603

Warning: This coverage report may be inaccurate.

We've detected an issue with your CI configuration that might affect the accuracy of this pull request's coverage report.
To ensure accuracy in future PRs, please see these guidelines.
A quick fix for this PR: rebase it; your next report should be accurate.

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.02%) to 89.55%

Totals Coverage Status
Change from base Build 7635269974: 0.02%
Covered Lines: 59574
Relevant Lines: 66526

💛 - Coveralls

ElePT
ElePT previously approved these changes Jan 24, 2024
Copy link
Contributor

@ElePT ElePT left a comment

Choose a reason for hiding this comment

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

Happy to re-approve once the merge conflict is fixed.

ElePT
ElePT previously approved these changes Jan 24, 2024
@ElePT ElePT enabled auto-merge January 24, 2024 09:18
@ElePT ElePT disabled auto-merge January 24, 2024 09:24
@ElePT
Copy link
Contributor

ElePT commented Jan 24, 2024

@1ucian0 checking the docs build logs, I've realized that the API docs entry for execute needs to be removed too, that is docs/apidocs/execute.rst+ the execute entry in docs/apidocs/index.rst. I think that the entry is ignored if the class is not found and the docs still build without errors, and that's why it has slipped under the radar.

@1ucian0
Copy link
Member Author

1ucian0 commented Jan 24, 2024

good catch! fixing it in 7c5fc5e

Copy link
Contributor

@ElePT ElePT left a comment

Choose a reason for hiding this comment

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

I looks like the docs build has finally succeeded. Let's hope that there are no further surprises.

@ElePT ElePT enabled auto-merge January 24, 2024 10:56
@ElePT ElePT added this pull request to the merge queue Jan 24, 2024
Merged via the queue into Qiskit:main with commit 1a027ac Jan 24, 2024
12 checks passed
jakelishman added a commit to jakelishman/qiskit-terra that referenced this pull request May 20, 2024
This reference to `transpile` was mistakenly inserted as part of 1a027ac
(Qiskitgh-11565); `execute` used to ignore the `transpile` step for
`Schedule`/`ScheduleBlock` and submit directly to `backend.run`.

I am not clear if there are actually any backends that *accept* pulse
jobs anymore, but if there are, this is what the text should have been
translated to.
github-merge-queue bot pushed a commit that referenced this pull request May 20, 2024
* Remove reference to `transpile` from Pulse docs

This reference to `transpile` was mistakenly inserted as part of 1a027ac
(gh-11565); `execute` used to ignore the `transpile` step for
`Schedule`/`ScheduleBlock` and submit directly to `backend.run`.

I am not clear if there are actually any backends that *accept* pulse
jobs anymore, but if there are, this is what the text should have been
translated to.

* Update qiskit/pulse/builder.py

Co-authored-by: Will Shanks <[email protected]>

---------

Co-authored-by: Will Shanks <[email protected]>
mergify bot pushed a commit that referenced this pull request May 20, 2024
* Remove reference to `transpile` from Pulse docs

This reference to `transpile` was mistakenly inserted as part of 1a027ac
(gh-11565); `execute` used to ignore the `transpile` step for
`Schedule`/`ScheduleBlock` and submit directly to `backend.run`.

I am not clear if there are actually any backends that *accept* pulse
jobs anymore, but if there are, this is what the text should have been
translated to.

* Update qiskit/pulse/builder.py

Co-authored-by: Will Shanks <[email protected]>

---------

Co-authored-by: Will Shanks <[email protected]>
(cherry picked from commit 8e3218b)
github-merge-queue bot pushed a commit that referenced this pull request May 20, 2024
* Remove reference to `transpile` from Pulse docs

This reference to `transpile` was mistakenly inserted as part of 1a027ac
(gh-11565); `execute` used to ignore the `transpile` step for
`Schedule`/`ScheduleBlock` and submit directly to `backend.run`.

I am not clear if there are actually any backends that *accept* pulse
jobs anymore, but if there are, this is what the text should have been
translated to.

* Update qiskit/pulse/builder.py

Co-authored-by: Will Shanks <[email protected]>

---------

Co-authored-by: Will Shanks <[email protected]>
(cherry picked from commit 8e3218b)

Co-authored-by: Jake Lishman <[email protected]>
ElePT pushed a commit to ElePT/qiskit that referenced this pull request May 31, 2024
* Remove reference to `transpile` from Pulse docs

This reference to `transpile` was mistakenly inserted as part of 1a027ac
(Qiskitgh-11565); `execute` used to ignore the `transpile` step for
`Schedule`/`ScheduleBlock` and submit directly to `backend.run`.

I am not clear if there are actually any backends that *accept* pulse
jobs anymore, but if there are, this is what the text should have been
translated to.

* Update qiskit/pulse/builder.py

Co-authored-by: Will Shanks <[email protected]>

---------

Co-authored-by: Will Shanks <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Changelog: Removal Include in the Removed section of the changelog priority: high
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants