Note

This is the documentation for the current state of the development branch of Qiskit Experiments. The documentation or APIs here can change prior to being released.

ShotOrder

class ShotOrder(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Shot order allowed values.

Generally, there are two possible modes in which a backend measures m circuits with n shots:

  • In the “circuit_first” mode, the backend subsequently first measures all m circuits and then repeats this n times.

  • In the “shot_first” mode, the backend first measures the 1st circuit n times, then the 2nd circuit n times, and it proceeds with the remaining circuits in the same way until it measures the m-th circuit n times.

The current default mode of IBM Quantum devices is “circuit_first”.

Attributes

circuit_first = 'c'
shot_first = 's'

Methods

classmethod __getitem__(name)

Return the member matching name.

classmethod __len__()

Return the number of members (no aliases)