iqm.benchmarks.compressive_gst.mgst.reporting.reporting.compute_matched_ideal_hamiltonian_params

iqm.benchmarks.compressive_gst.mgst.reporting.reporting.compute_matched_ideal_hamiltonian_params#

iqm.benchmarks.compressive_gst.mgst.reporting.reporting.compute_matched_ideal_hamiltonian_params(dataset: Dataset) tuple[ndarray, ndarray]#

Computes the Hamiltonian parameters and matches the ideal Hamiltonian parameters to the measured ones.

This does not change the unitary generated by the Hamiltonian

Parameters:

dataset (xarray.Dataset) – A dataset containing counts from the experiment and configurations.

Returns:

A tuple containing:
  • hamiltonian_params: Hamiltonian parameters of the measured gates.

  • hamiltonian_params_ideal_matched: Ideal Hamiltonian parameters matched to the measured ones.

Return type:

Tuple[numpy.ndarray, numpy.ndarray]