-
Notifications
You must be signed in to change notification settings - Fork 127
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 minimal working code examples in Experiment API docs #1494
Add minimal working code examples in Experiment API docs #1494
Conversation
local/main is updated
local/main is updated
local/main updated
local/main updated
local/main is updated
local/main is updated
local/main is updated
local/main is updated
local/main is updated
local/main is updated
loal/main is updated.
local/main is updated
…periments into main local/main is updated
…periments local/main updated
…periments lodal/main updated
…periments into main local/main updated (Qiskit-Extensions#1238)
…periments local/main updated (Qiskit-Extensions#1238)
local/main updated
local/main update
Hello, @wshanks. |
qiskit_experiments/library/randomized_benchmarking/interleaved_rb_experiment.py
Outdated
Show resolved
Hide resolved
releasenotes/notes/add-examples-to-experiments-api-docs-31f3e3c3369a6f3d.yaml
Show resolved
Hide resolved
The PR looks ready except one suggestion about the RB analysis names.
It feels a bit long to me, but we can can go with it for now. We will remove the pulse experiments soon from the main branch to prepare for pulse being removed in Qiskit 2.0 and that will bring the time down some. It would be nice if we could log the time of each jupyter-execute run to see where all the time is going. There might be some way to do that with sphinx and jupyter-sphinx but I don't know how. We have our |
Hi, @wshanks. |
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 @Naohnakazawa! I think it looks good now!
### Summary This change adds minimal working code examples to the API pages for Experiments, EFSpectroscopy, EFRabi, StarkRamseyXYAmpScan, FineAmplitudeCal, FineXAmplitudeCal, FineSXAmplitudeCal, FineDragCal, FineXDragCal, FineSXDragCal, FineFrequencyCal, FrequencyCal, HalfAngleCal, RoughAmplitudeCal, RoughXSXAmplitudeCal, EFRoughXSXAmplitudeCal, RoughDragCal, RoughFrequencyCal, QuantumVolume, InterleavedRB, LayerFidelity, StandardRB, MitigatedProcessTomography, MitigatedStateTomography, ProcessTomography, StateTomography and TomographyExperiment. ### Details and comments - This PR covers many remaining experiments in `issue#1238` and `issue#1221`. - In the API pages, the documentation for each experiment has been updated with its code example. Users are required to specify a backend in the code example. By default, backends used in the code examples, are simulators such as, SingleTransmonTestBackend() and AerSimulator(FakePerth()). --------- Co-authored-by: 中澤 直仁 <nakazawanaohito@nakazawa-iMac.local> (cherry picked from commit cc258d7)
) (#1505) ### Summary This change adds minimal working code examples to the API pages for Experiments, EFSpectroscopy, EFRabi, StarkRamseyXYAmpScan, FineAmplitudeCal, FineXAmplitudeCal, FineSXAmplitudeCal, FineDragCal, FineXDragCal, FineSXDragCal, FineFrequencyCal, FrequencyCal, HalfAngleCal, RoughAmplitudeCal, RoughXSXAmplitudeCal, EFRoughXSXAmplitudeCal, RoughDragCal, RoughFrequencyCal, QuantumVolume, InterleavedRB, LayerFidelity, StandardRB, MitigatedProcessTomography, MitigatedStateTomography, ProcessTomography, StateTomography and TomographyExperiment. ### Details and comments - This PR covers many remaining experiments in `issue#1238` and `issue#1221`. - In the API pages, the documentation for each experiment has been updated with its code example. Users are required to specify a backend in the code example. By default, backends used in the code examples, are simulators such as, SingleTransmonTestBackend() and AerSimulator(FakePerth()). <hr>This is an automatic backport of pull request #1494 done by [Mergify](https://mergify.com). Co-authored-by: Naohito Nakazawa <117684192+Naohnakazawa@users.noreply.github.com>
The update versions are live now on the dev version of the docs: https://qiskit-community.github.io/qiskit-experiments/dev/apidocs/library.html I backported the PR to the stable 0.8 branch as well. I want to get #1502 merged into 0.8 and then we can release 0.8.1 and the docs changes should appear on the stable version of the docs as well. I might not be able to find anyone to review #1502 before January though. |
@Naohnakazawa I wrote the script to check the jupyter execute times. Maybe the QV and RB experiments could be made a little faster (and the QV manual needs to be looked at) but otherwise the non-pulse experiments have similar times (a few notebooks failed because they use
|
Summary
This change adds minimal working code examples to the API pages for Experiments,
EFSpectroscopy,
EFRabi,
StarkRamseyXYAmpScan,
FineAmplitudeCal,
FineXAmplitudeCal,
FineSXAmplitudeCal,
FineDragCal,
FineXDragCal,
FineSXDragCal,
FineFrequencyCal,
FrequencyCal,
HalfAngleCal,
RoughAmplitudeCal,
RoughXSXAmplitudeCal,
EFRoughXSXAmplitudeCal,
RoughDragCal,
RoughFrequencyCal,
QuantumVolume,
InterleavedRB,
LayerFidelity,
StandardRB,
MitigatedProcessTomography,
MitigatedStateTomography,
ProcessTomography,
StateTomography and
TomographyExperiment.
Details and comments
issue#1238
andissue#1221
.