-
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
Add release notes for V2 of the primitives #11589
Conversation
One or more of the the following people are requested to review this:
|
Pull Request Test Coverage Report for Build 7916552177Warning: This coverage report may be inaccurate.This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Details
💛 - Coveralls |
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.
Looks ok, though I wonder if we want to separate bullets for the release note of introducing the new API, and adding the new reference implementations of Sampler and Estimator that probably deserve their own reno including something like the code snippet you added
Yeah I wasn't sure of style conventions or expectations of a reno for such a big thing should be, so I decided just to open something as a placeholder and wait for the reviews. |
I split it into three files: one for the new abstract API and container types, and one for each of the new implementations. I made sure that all of the code runs. |
You don't need to use separate files. You can have multiple release notes in a single file, you just put multiple yaml list entries in the file with each note. For example https://github.com/Qiskit/qiskit/blob/main/releasenotes/notes/add-synth-circuit-from-stabilizer-list-4cf9cfa01bbc7ddf.yaml has 2 feature release notes in one file. You can also have multiple categories of notes in a single file too. |
Just did something dumb with a push. Will fix. |
9b1cff2
to
27088d6
Compare
I'm going to wait for #11227 to merge before attempting to finalize this PR. Then we can do it all at once. |
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. We can merge it after #11227 is merged.
a3ee17d
to
2956994
Compare
The last three commits I've just pushed up should fix the docs build. The principal issue is that .. automodule:: qiskit.primitives.base.base_sampler is not just a simple "text-only include", it's got some side-effects:
4269544 puts a |
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.
Looks good. Quickly skimming I noticed a couple of types, and added a couple other suggestions for clarity
This PR should be ready to merge, from my perspective. There is only the question about whether its worth making the column width smaller for all of the code snippets. |
The current styling on docs.quantum.ibm.com should give you 80 columns safely within a release note (assuming it's not within a subbullet or anything), and on my device you get a couple of spare. If you can easily keep it down to (say) 72, the display shouldn't have any problems. |
And do you happen to know for the module documentation as well? |
It'll be a shade wider, just because there's no bullet using up margin on the left. I don't know what the actual styles target or anything, I just measured it on a live page. |
Thanks, done in cfe2699. |
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
Good spot, that is unfortunate. Do you have any idea how to change it? All of that |
I'm afraid that I have no idea how to change it. Perhaps @jakelishman can help us if he has time to spare. |
It's likely something we'd have to do in Sphinx configuration to make it treat type aliases as opaque, linked objects or something. I've not looked into it before, but it's probably hiding away somewhere in the options. It's also possibly a thing that's not properly available to us until we're using a later version of Python for the documentation build, since the Python internal handling of type hints changes quite a lot between versions right now. |
I found this conf option: https://www.sphinx-doc.org/en/master/usage/extensions/autodoc.html#confval-autodoc_type_aliases I'm not sure if we would want to go down this route. |
* Add release notes for V2 of the primitives * Update releasenotes/notes/primitives-v2-df871c0c6ac0b94a.yaml Co-authored-by: Christopher J. Wood <cjwood@us.ibm.com> * Add separate release notes for the statevector estimators. * update base class reno * fix typo * Copy example into StaevectorSampler * Move all renos into one file, as suggested by @mtreinish * Removed references to privatized classes * typo * Modify statevector sampler docs to not talk about SamplerPub * remove more references to BindingsArray and ObservablesArray and add Estimator example * lint * Apply suggestions from code review Co-authored-by: Christopher J. Wood <cjwood@us.ibm.com> * minor fixes from CR * switch to pub variables instead of inline * switch to quantum_info types in examples * remove references to removed BasisObservable type * do a bit of reorganization and write a migration section * make the statevectorestimator do the plot in docs * Apply suggestions from code review Co-authored-by: Ikko Hamamura <ikkoham@users.noreply.github.com> Co-authored-by: Takashi Imamichi <31178928+t-imamichi@users.noreply.github.com> * remove comma * address various minor code suggestions * switch to get_bitstrings() * revert accidental removal of V1 sections * Fix Sphinx module-path imports * Fix minor syntax errors * Fix whitespace * Stop importing docs with automodule * add raw string directive * add PrimitiveJob to the public API * make some of Chris' changes * rewrap textblocks to < 80 chars --------- Co-authored-by: Christopher J. Wood <cjwood@us.ibm.com> Co-authored-by: Ikko Hamamura <ikkoham@users.noreply.github.com> Co-authored-by: Takashi Imamichi <31178928+t-imamichi@users.noreply.github.com> Co-authored-by: Jake Lishman <jake.lishman@ibm.com> (cherry picked from commit 172fa04)
* Add release notes for V2 of the primitives * Update releasenotes/notes/primitives-v2-df871c0c6ac0b94a.yaml Co-authored-by: Christopher J. Wood <cjwood@us.ibm.com> * Add separate release notes for the statevector estimators. * update base class reno * fix typo * Copy example into StaevectorSampler * Move all renos into one file, as suggested by @mtreinish * Removed references to privatized classes * typo * Modify statevector sampler docs to not talk about SamplerPub * remove more references to BindingsArray and ObservablesArray and add Estimator example * lint * Apply suggestions from code review Co-authored-by: Christopher J. Wood <cjwood@us.ibm.com> * minor fixes from CR * switch to pub variables instead of inline * switch to quantum_info types in examples * remove references to removed BasisObservable type * do a bit of reorganization and write a migration section * make the statevectorestimator do the plot in docs * Apply suggestions from code review Co-authored-by: Ikko Hamamura <ikkoham@users.noreply.github.com> Co-authored-by: Takashi Imamichi <31178928+t-imamichi@users.noreply.github.com> * remove comma * address various minor code suggestions * switch to get_bitstrings() * revert accidental removal of V1 sections * Fix Sphinx module-path imports * Fix minor syntax errors * Fix whitespace * Stop importing docs with automodule * add raw string directive * add PrimitiveJob to the public API * make some of Chris' changes * rewrap textblocks to < 80 chars --------- Co-authored-by: Christopher J. Wood <cjwood@us.ibm.com> Co-authored-by: Ikko Hamamura <ikkoham@users.noreply.github.com> Co-authored-by: Takashi Imamichi <31178928+t-imamichi@users.noreply.github.com> Co-authored-by: Jake Lishman <jake.lishman@ibm.com> (cherry picked from commit 172fa04) Co-authored-by: Ian Hincks <ian.hincks@ibm.com>
Summary
Release notes for all of the new features added in V2 of the primitives.
Details and comments