Skip to content

Commit

Permalink
Correct statistics in qpe test (#328)
Browse files Browse the repository at this point in the history
* Amplitude Amplification algorithm as a Gate in ops

* Amplitude Amplification algorithm as a Gate in ops, correct test_string_functions

* Amplitude Amplification algorithm as a Gate in ops, correct coverage for _qaagate_test

* Amplitude Amplification algorithm as a Gate in ops, correct test estimation statistics in phaseestimation_test

* Try to triger Travis test because an apt get failure in the travis test

* resend docs/projectq.ops.rst file

* resend file versions previous to AA

* Try to triger Travis test because it never ran

* Try to triger Travis test again to try to get the tests ran
  • Loading branch information
fernandodelaiglesia authored and Takishima committed Jul 18, 2019
1 parent 3ac3c2c commit 6a46f45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion projectq/setups/decompositions/phaseestimation_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def test_2qubitsPh_andfunction_eigenvectors():
eng.flush()

num_phase = (results == 0.125).sum()
assert num_phase/100. >= 0.35, "Statistics phase calculation are not correct (%f vs. %f)" % (num_phase/100., 0.35)
assert num_phase/100. >= 0.34, "Statistics phase calculation are not correct (%f vs. %f)" % (num_phase/100., 0.34)


def test_X_no_eigenvectors():
Expand Down

0 comments on commit 6a46f45

Please sign in to comment.