iqm.benchmarks.benchmark_definition.BenchmarkObservationIdentifier#

class iqm.benchmarks.benchmark_definition.BenchmarkObservationIdentifier(qubit_indices: list[int] | None = None, custom_identifier: str | None = None)#

Bases: object

Identifier for observations for ease of use.

Parameters:
  • qubit_indices (list[int] | None)

  • custom_identifier (str | None)

qubit_indices#

list containing the indices of the qubits the observation was executed on.

Type:

list[int] | None

custom_identifier#

optional user-defined string identifier.

Type:

str | None

Attributes

custom_identifier

qubit_indices

string_identifier

String version of the qubit indices for ease of use, or custom identifier if given.

Methods

__eq__(other)

Return self==value.

__repr__()

Return repr(self).

property string_identifier: str#

String version of the qubit indices for ease of use, or custom identifier if given.

Returns:

A string of the qubit indices