iqm.benchmarks.entanglement.graph_states.GraphStateBenchmark#
- class iqm.benchmarks.entanglement.graph_states.GraphStateBenchmark(backend_arg: IQMBackendBase, configuration: GraphStateConfiguration)#
Bases:
BenchmarkThe 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.
Generates all circuits and associated information for the Graph State benchmark.
name()Returns the name of the benchmark.
- Parameters:
backend_arg (IQMBackendBase)
configuration (GraphStateConfiguration)
- static analysis_function(run: BenchmarkRunResult) BenchmarkAnalysisResult#
Analysis function for a Graph State benchmark experiment.
- Parameters:
run (BenchmarkRunResult)
- Return type:
- 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
- execute(backend: IQMBackend | IQMFacadeBackend | str) Dataset#
Executes the benchmark.
- Parameters:
backend (IQMBackend | IQMFacadeBackend | str)
- Return type: