Skip to content

Commit

Permalink
Add twirling stratgey options diagram (#2056)
Browse files Browse the repository at this point in the history
* Add twirling stratgey options diagram

* Update alt text

* fix lint

* Update qiskit_ibm_runtime/options/twirling_options.py

Co-authored-by: Eric Arellano <[email protected]>

* Update qiskit_ibm_runtime/options/twirling_options.py

Co-authored-by: Rebecca Dimock <[email protected]>

* Update qiskit_ibm_runtime/options/twirling_options.py

Co-authored-by: Rebecca Dimock <[email protected]>

---------

Co-authored-by: Eric Arellano <[email protected]>
Co-authored-by: Rebecca Dimock <[email protected]>
Co-authored-by: ptristan3 <[email protected]>
  • Loading branch information
4 people authored Dec 2, 2024
1 parent a5c6ce6 commit ae49bde
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Binary file added docs/source_images/twirling_strategy_options.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions qiskit_ibm_runtime/options/twirling_options.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,13 @@ class TwirlingOptions:
twirled layer.
Default: "active-accum".
.. image:: /source_images/twirling_strategy_options.png
:alt: Image illustrating the differences among twirling strategies. If "active", only
instruction qubits in each layer will be twirled. If "active-circuit",
all instruction qubits in the circuit will be twirled. If "active-accum", the union
all instruction qubits in the circuit up to the current twirled layer will be twirled.
Finally, if "all", all qubits in the input circuit will be twirled in each twirled layer.
"""

_ge1 = make_constraint_validator("num_randomizations", "shots_per_randomization", ge=1)

0 comments on commit ae49bde

Please sign in to comment.