forked from qiskit-community/qiskit-experiments
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feature/stark_p1_frequency_scan
- Loading branch information
Showing
152 changed files
with
3,592 additions
and
1,147 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
[DEFAULT] | ||
test_path=./test | ||
parallel_class=True |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
Control figure generation | ||
========================= | ||
|
||
Problem | ||
------- | ||
|
||
You want to change the default behavior where figures are generated with every experiment. | ||
|
||
Solution | ||
-------- | ||
|
||
For a single non-composite experiment, figure generation can be switched off by setting the analysis | ||
option ``plot`` to ``False``: | ||
|
||
.. jupyter-input:: | ||
|
||
experiment.analysis.set_options(plot = False) | ||
|
||
For composite experiments, there is a ``generate_figures`` analysis option which controls how child figures are | ||
generated. There are three options: | ||
|
||
- ``always``: The default behavior, generate figures for each child experiment. | ||
- ``never``: Never generate figures for any child experiment. | ||
- ``selective``: Only generate figures for analysis results where ``quality`` is ``bad``. This is useful | ||
for large composite experiments where you only want to examine qubits with problems. | ||
|
||
This parameter should be set on the analysis of a composite experiment before the analysis runs: | ||
|
||
.. jupyter-input:: | ||
|
||
parallel_exp = ParallelExperiment( | ||
[T1(physical_qubits=(i,), delays=delays) for i in range(2)] | ||
) | ||
parallel_exp.analysis.set_options(generate_figures="selective") | ||
|
||
Discussion | ||
---------- | ||
|
||
These options are useful for large composite experiments, where generating all figures incurs a significant | ||
overhead. | ||
|
||
See Also | ||
-------- | ||
|
||
* The `Visualization tutorial <visualization.html>`_ discusses how to customize figures |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.