From 28b850b02c8449d00c241b58a936602492092568 Mon Sep 17 00:00:00 2001 From: Yael Ben-Haim Date: Mon, 18 Oct 2021 08:23:56 +0300 Subject: [PATCH] english --- qiskit_experiments/curve_analysis/curve_analysis.py | 12 ++++++------ test/data_processing/test_nodes.py | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/qiskit_experiments/curve_analysis/curve_analysis.py b/qiskit_experiments/curve_analysis/curve_analysis.py index c31277304a..cd62aedb00 100644 --- a/qiskit_experiments/curve_analysis/curve_analysis.py +++ b/qiskit_experiments/curve_analysis/curve_analysis.py @@ -531,20 +531,20 @@ def _extract_curves( ): """Extract curve data from experiment data. - This method internally populate two type of curve data. + This method internally populates two types of curve data. - raw_data: This is the data directly obtained from the experiment data. - You can access to this data with ``self._data(label="raw_data")``. + You can access this data with ``self._data(label="raw_data")``. - fit_ready: - This is the formatted data created pre-processing defined by + This is the formatted data created by pre-processing defined by `self._format_data()` method. This method is implemented by subclasses. You can access to this data with ``self._data(label="fit_ready")``. - If multiple series exists, you can optionally specify ``series_name`` in + If multiple series exist, you can optionally specify ``series_name`` in ``self._data`` method to filter data in the target series. .. notes:: @@ -554,12 +554,12 @@ def _extract_curves( Args: experiment_data: ExperimentData object to fit parameters. data_processor: A callable or DataProcessor instance to format data into numpy array. - This should take list of dictionary and returns two tuple of float values + This should take a list of dictionaries and return two tuple of float values, that represent a y value and an error of it. Raises: DataProcessorError: When `x_key` specified in the analysis option is not defined in the circuit metadata. - AnalysisError: When formatted data has the label other than fit_ready. + AnalysisError: When formatted data has label other than fit_ready. """ self.__processed_data_set = list() diff --git a/test/data_processing/test_nodes.py b/test/data_processing/test_nodes.py index 2c57728f7b..6f165bc32e 100644 --- a/test/data_processing/test_nodes.py +++ b/test/data_processing/test_nodes.py @@ -138,7 +138,7 @@ def test_svd(self): """Use IQ data gathered from the hardware.""" # This data is primarily oriented along the real axis with a slight tilt. - # The is a large offset in the imaginary dimension when comparing qubits + # There is a large offset in the imaginary dimension when comparing qubits # 0 and 1. iq_data = [ [[-6.20601501e14, -1.33257051e15], [-1.70921324e15, -4.05881657e15]], @@ -179,7 +179,7 @@ def test_svd_error(self): self.assertEqual(processed, np.array([1.0])) self.assertEqual(error, np.array([0.2])) - # Title the axis to an angle of 36.9... degrees + # Tilt the axis to an angle of 36.9... degrees iq_svd._main_axes = np.array([[0.8, 0.6]]) processed, error = iq_svd([[1.0, 0.0]], [[0.2, 0.3]]) cos_ = np.cos(np.arctan(0.6 / 0.8))