Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix cvxpy qpt check #761

Merged
Merged
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
4 changes: 2 additions & 2 deletions qiskit_experiments/library/tomography/tomography_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def _run_analysis(self, experiment_data):

# Check for both preparation and measurement data to determine if we are
# fitting a channel via QPT or a density matrix via QST
qpt = preparation_data.shape[0]
qpt = preparation_data.shape[1] > 0

# Compute the preparation dimension if we are performing QPT
if qpt:
Expand Down Expand Up @@ -149,7 +149,7 @@ def _run_analysis(self, experiment_data):
preparation_data,
measurement_basis=self.options.measurement_basis,
preparation_basis=self.options.preparation_basis,
**self.options.fitter_options,
**fitter_opts,
)
except AnalysisError as ex:
raise AnalysisError(f"Tomography fitter failed with error: {str(ex)}") from ex
Expand Down