iqm.benchmarks.circuit_containers.Circuits

iqm.benchmarks.circuit_containers.Circuits#

class iqm.benchmarks.circuit_containers.Circuits(benchmark_circuits: ~typing.List[~iqm.benchmarks.circuit_containers.BenchmarkCircuit] = <factory>)#

Bases: object

Container for all the BenchmarkCircuit that are generated in a single benchmark execution.

Parameters:

benchmark_circuits (List[BenchmarkCircuit]) –

benchmark_circuits#

List of BenchmarkCircuit contained.

Type:

List[iqm.benchmarks.circuit_containers.BenchmarkCircuit]

Attributes

Methods

__eq__(other)

Return self==value.

__getitem__(key)

__repr__()

Return repr(self).

__setitem__(key, value)

get_benchmark_circuits_by_name(name)

Returned the BenchmarkCircuit by name.

get_benchmark_circuits_by_name(name: str) BenchmarkCircuit | None#

Returned the BenchmarkCircuit by name.

Parameters:

name (str) – Name of the requested BenchmarkCircuit as a string

Returns:

The requested BenchmarkCircuit if it exists, None otherwise

Return type:

BenchmarkCircuit | None