iqm.benchmarks.entanglement.ghz.fidelity_ghz_randomized_measurements

iqm.benchmarks.entanglement.ghz.fidelity_ghz_randomized_measurements#

iqm.benchmarks.entanglement.ghz.fidelity_ghz_randomized_measurements(dataset: Dataset, qubit_layout, ideal_probabilities: List[Dict[str, int]], num_qubits: int, circuits: Circuits) tuple[dict[str, Any], dict[str, Any]]#

Estimates GHZ state fidelity through cross-correlations of RMs. Implementation of Eq. (34) in https://arxiv.org/abs/1812.02624

Parameters:
  • dataset (xr.Dataset) –

  • qubit_layout – List[int]: The subset of system-qubits used in the protocol

  • ideal_probabilities (List[Dict[str, int]]) –

  • num_qubits (int) – Number of qubits

  • circuits (Circuits) – Instance of Circuits containing transpiled circuits

Returns:

dict[str, Any]

The fidelities

uncertainties: dict[str, Any]

The uncertainties for the fidelities

Return type:

values