Skip to content

Commit

Permalink
Make the method for evaluating result quality possible to override
Browse files Browse the repository at this point in the history
  • Loading branch information
itoko committed Apr 1, 2024
1 parent fe6d4b3 commit 9d5ac70
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ def _create_analysis_results(
alpha = fit_data.ufloat_params["alpha"]
pf = (1 + (d * d - 1) * alpha) / (d * d)

quality, reason = self.__evaluate_quality(fit_data)
quality, reason = self._evaluate_quality_with_reason(fit_data)

metadata["qubits"] = self._physical_qubits
metadata["reason"] = reason
Expand Down Expand Up @@ -187,7 +187,7 @@ def _get_experiment_components(self, experiment_data: ExperimentData):
"""Set physical qubits to the experiment components."""
return [device.Qubit(qubit) for qubit in self._physical_qubits]

def __evaluate_quality(
def _evaluate_quality_with_reason(
self,
fit_data: curve.CurveFitResult,
) -> Tuple[str, Union[str, None]]:
Expand Down

0 comments on commit 9d5ac70

Please sign in to comment.