iqm.benchmarks.entanglement.graph_states.GraphStateBenchmark#

class iqm.benchmarks.entanglement.graph_states.GraphStateBenchmark(backend_arg: IQMBackendBase, configuration: GraphStateConfiguration)#

Bases: Benchmark

The Graph States benchmark estimates the bipartite entangelement negativity of native graph states.

Attributes

Methods

add_all_meta_to_dataset(dataset)

Adds all configuration metadata and circuits to the dataset variable.

analysis_function(run)

Analysis function for a Graph State benchmark experiment.

execute(backend)

Executes the benchmark.

generate_all_circuit_info_for_graph_state_benchmark()

Generates all circuits and associated information for the Graph State benchmark.

name()

Returns the name of the benchmark.

Parameters:
static analysis_function(run: BenchmarkRunResult) BenchmarkAnalysisResult#

Analysis function for a Graph State benchmark experiment.

Parameters:

run (BenchmarkRunResult)

Return type:

BenchmarkAnalysisResult

classmethod name() str#

Returns the name of the benchmark.

Return type:

str

add_all_meta_to_dataset(dataset: Dataset) None#

Adds all configuration metadata and circuits to the dataset variable.

Parameters:

dataset (Dataset) – The xarray dataset

Return type:

None

generate_all_circuit_info_for_graph_state_benchmark() dict[str, Any]#

Generates all circuits and associated information for the Graph State benchmark.

  • Generates native graph states

  • Identifies all pairs of qubits with disjoint neighbors

  • Generates all projected nodes to cover all pairs of qubits with disjoint neighbors

Returns:

A dictionary containing all circuit information for the Graph State benchmark.

Return type:

dict[str, Any]

execute(backend: IQMBackend | IQMFacadeBackend | str) Dataset#

Executes the benchmark.

Parameters:

backend (IQMBackend | IQMFacadeBackend | str)

Return type:

Dataset