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
name
Methods
add_all_circuits_to_dataset
(dataset)Adds all generated circuits during execution to the dataset variable
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:
- 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)#
Adds all configuration metadata and circuits to the dataset variable
- Parameters:
dataset (xr.Dataset) – The xarray dataset
- add_all_circuits_to_dataset(dataset: Dataset)#
Adds all generated circuits during execution to the dataset variable
- Parameters:
dataset (xr.Dataset) – The xarray dataset
Returns:
- 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) Dataset #
Executes the benchmark.
- Return type:
Dataset