-
Notifications
You must be signed in to change notification settings - Fork 22
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
Remove qubits from TomographyExperiment
#107
Conversation
@astaley @jonward-rigetti @kylegulshen New PR for removal of |
d9027d6
to
ca70d51
Compare
Per the discussion in rigetti/pyquil#896, I would argue the correct solution is to add the |
@@ -1,4 +1,4 @@ | |||
pyquil>=2.4.0 | |||
pyquil>=2.7.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change must imply a major version bump. We need to either revert the change to pyquil and re-release, or re-label this release as 3.0.0.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pyquil versioning needs to be sorted out before proceeding.
I'm ok proceeding here now that we have a plan in place to provide a deprecation path on the prior API in pyquil. |
Sounds good, merging this in now. |
@msohaibalam: @astaley found that |
I see this particular line: https://github.com/rigetti/forest-benchmarking/blob/master/forest/benchmarking/direct_fidelity_estimation.py#L324. Would it work if we replaced |
cal_point_est=np.array([r.calibration_expectation for r in res]), | ||
cal_std_err=np.array([r.calibration_stddev for r in res]), | ||
cal_std_err=np.array([r.calibration_std_err for r in res]), | ||
dimension=2**len(expr.qubits), | ||
qubits=expr.qubits) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These two lines refer to expr.qubits
.
Yes, that would work. We also need to populate the |
@blakejohnson Thanks for the input! I'm working on PR #115 to fix this bug asap. I'll ping you there once I'm sure the tests pass. |
Necessary update after merging of rigetti/pyquil#896