Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions qiskit_experiments/curve_analysis/curve_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -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::
Expand All @@ -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()

Expand Down
4 changes: 2 additions & 2 deletions test/data_processing/test_nodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]],
Expand Down Expand Up @@ -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))
Expand Down