Skip to content

Commit

Permalink
More informative figure names
Browse files Browse the repository at this point in the history
  • Loading branch information
itoko committed Feb 26, 2024
1 parent 1ba4a75 commit f954db1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,9 @@ def __init__(
Args:
physical_qubits: List of physical qubits for the experiment.
two_qubit_layers: List of pairs of qubits to run on, will use the direction given here.
lengths: A list of RB sequences lengths.
lengths: A list of layer lengths.
backend: The backend to run the experiment on.
num_samples: Number of samples to generate for each sequence length.
num_samples: Number of samples to generate for each layer length.
seed: Optional, seed used to initialize ``numpy.random.default_rng``.
when generating circuits. The ``default_rng`` will be initialized
with this seed value every time :meth:`circuits` is called.
Expand Down Expand Up @@ -174,8 +174,8 @@ def _default_experiment_options(cls) -> Options:
Experiment Options:
two_qubit_layers (List[List[Tuple[int, int]]]): List of pairs of qubits to run on.
lengths (List[int]): A list of RB sequences lengths.
num_samples (int): Number of samples to generate for each sequence length.
lengths (List[int]): A list of layer lengths.
num_samples (int): Number of samples to generate for each layer length.
seed (None or int or SeedSequence or BitGenerator or Generator): A seed
used to initialize ``numpy.random.default_rng`` when generating circuits.
The ``default_rng`` will be initialized with this seed value every time
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,10 @@ def __init__(self, physical_qubits):
]
)
self._physical_qubits = physical_qubits
self.set_options(outcome="0" * len(physical_qubits))
self.set_options(
outcome="0" * len(physical_qubits),
figure_names="DirectRB_Q" + "_Q".join(map(str, physical_qubits)) + ".svg",
)
self.plotter.set_figure_options(
figure_title=f"Simultaneous Direct RB on Qubit{physical_qubits}",
)
Expand Down

0 comments on commit f954db1

Please sign in to comment.