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

Operator estimation #682

Merged
merged 54 commits into from
Dec 18, 2018
Merged
Changes from 1 commit
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
9934a05
Operator estimation
Nov 9, 2018
89b02a7
Active reset
Nov 14, 2018
7075b4a
Put this the right way
Nov 14, 2018
474331c
hack out _record_call. might be leaking memory
Nov 14, 2018
74e2df8
Merge remote-tracking branch 'origin/master' into big-operator-estima…
Nov 19, 2018
b2b557c
Operator estimation tests
Nov 29, 2018
210d248
Merge remote-tracking branch 'origin/master' into big-operator-estima…
Nov 29, 2018
e9f1537
Start trying to fix tests
Nov 29, 2018
dcb6eae
Revert changes to pauli coefficient
Nov 29, 2018
6a00bdd
flake8
Nov 29, 2018
dbd56f3
Merge remote-tracking branch 'origin/master' into big-operator-estima…
Nov 30, 2018
650a0f0
Fix active_reset docstring
Dec 5, 2018
1882241
Remove active_reset from run_and_measure
Dec 5, 2018
3f11d97
Document measure_observables
Dec 5, 2018
ee3c7cb
Unicode in source files
Dec 5, 2018
f2120c2
Validate input in PauliTerm.from_str
Dec 5, 2018
f7c7572
abbrev_after -> max_len
Dec 5, 2018
f2dde96
hidden -> not shown
Dec 5, 2018
f191cdf
Beef up ExperimentSuite docstrings
Dec 5, 2018
58a7596
exp -> expt
Dec 5, 2018
69f4828
Append expt
Dec 5, 2018
8d8afd6
local_pauli_eig_prep docstring
Dec 5, 2018
6f29761
Fast return
Dec 5, 2018
8500ea7
Fast return
Dec 5, 2018
e35c175
Input validation for op codes
Dec 5, 2018
be44623
Use `cls` in classmethod
Dec 7, 2018
838ec7e
Fix from_str
Dec 8, 2018
1702db1
Put __str__ back
Dec 8, 2018
2f5c8ee
Comment the heck out of measure_observables and use np.var
Dec 8, 2018
5f33051
List comprehension
Dec 8, 2018
be55ae6
Refactor validation code
Dec 8, 2018
60a7509
Merge remote-tracking branch 'origin/master' into big-operator-estima…
Dec 8, 2018
ec320bd
Pycharm why hath you forsaken me
Dec 8, 2018
f985807
fixup merge
Dec 8, 2018
ebd26c4
Revert change to default argument for PauliTerm
Dec 10, 2018
6a8457c
Only allow None for I ops
Dec 14, 2018
0b8a560
share -> diagonal
Dec 14, 2018
cf3934e
Only allow real coefficients
Dec 14, 2018
90003c0
Test fixes and a big test
Dec 14, 2018
c6943c0
Test fixes and a big test
Dec 14, 2018
390b0d1
Rename variables to setting
Dec 14, 2018
eaece01
flake8
Dec 14, 2018
8ee928e
fix deser
Dec 14, 2018
8031f9a
de-stochastify tests
Dec 14, 2018
6928d3b
Merge remote-tracking branch 'origin/master' into big-operator-estima…
Dec 14, 2018
ec84df3
Minimize diff
Dec 14, 2018
9f268c3
ExperimentResult has 'setting'
Dec 17, 2018
a26b2d8
ExperimentSuite -> TomographyExperiment
Dec 17, 2018
97c3c25
Merge remote-tracking branch 'origin/master' into big-operator-estima…
Dec 17, 2018
520091e
Pycharm was unhappy for some reason
Dec 17, 2018
a2e9166
serializable
Dec 17, 2018
c85f94d
Docstring
Dec 17, 2018
99146ec
Docs
Dec 17, 2018
267f791
pycharm thinks this import is unused but it certainly isn't...
Dec 18, 2018
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
Prev Previous commit
Next Next commit
Put this the right way
  • Loading branch information
Matthew Harrigan committed Nov 14, 2018

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit 7075b4a29c11a29fb87f1b03afd600b143e63776
2 changes: 1 addition & 1 deletion pyquil/api/_quantum_computer.py
Original file line number Diff line number Diff line change
@@ -233,7 +233,7 @@ def run_and_measure(self, program: Program, trials: int, active_reset=False) \
"""
program = program.copy()
if active_reset:
program._instructions.insert(RESET(), 0)
program._instructions.insert(0, RESET())
program = _validate_run_and_measure_program(program)
ro = program.declare('ro', 'BIT', len(self.qubits()))
for i, q in enumerate(self.qubits()):