iqm.benchmarks.compressive_gst.mgst.reporting.reporting.match_hamiltonian_phase

iqm.benchmarks.compressive_gst.mgst.reporting.reporting.match_hamiltonian_phase#

iqm.benchmarks.compressive_gst.mgst.reporting.reporting.match_hamiltonian_phase(pauli_coeffs: ndarray, pauli_coeffs_target: ndarray) ndarray#

Matches the sign of the phase of a target Hamiltonian represented by Pauli coeffs to a measured Hamiltonian.

Parameters:
  • pauli_coeffs (ndarray) – Pauli coefficients of the measured Hamiltonian.

  • pauli_coeffs_target (ndarray) – Pauli coefficients of the target Hamiltonian.

Returns:

Pauli coefficients of the target Hamiltonian with matched phase.

Return type:

ndarray