Skip to content

Commit

Permalink
Reinstate flaky test for phase estimation decomposition
Browse files Browse the repository at this point in the history
  • Loading branch information
Takishima committed Jun 23, 2021
1 parent 09b18ea commit f041821
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion projectq/setups/decompositions/phaseestimation_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

import cmath
import numpy as np
from flaky import flaky
import pytest

from projectq.backends import Simulator
Expand Down Expand Up @@ -66,6 +67,7 @@ def test_simple_test_X_eigenvectors():
)


@flaky(max_runs=5, min_passes=2)
def test_Ph_eigenvectors():
rule_set = DecompositionRuleSet(modules=[pe, dqft])
eng = MainEngine(
Expand All @@ -75,7 +77,7 @@ def test_Ph_eigenvectors():
],
)
results = np.array([])
for i in range(100):
for i in range(200):
autovector = eng.allocate_qureg(1)
theta = cmath.pi * 2.0 * 0.125
unit = Ph(theta)
Expand Down

0 comments on commit f041821

Please sign in to comment.