Skip to content

Commit

Permalink
Relaxed test constraint on test_stdgst_matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
robpkelly committed Mar 28, 2019
1 parent 428884c commit c78ea56
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test_packages/drivers/testCalcMethods1Q.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def test_stdgst_matrix(self):
mdl = results.estimates['default'].models['go0']
mdl_copy = mdl.copy()
print(mdl.strdiff(mdl_copy))
self.assertAlmostEqual( mdl.frobeniusdist(mdl_copy), 0, places=3)
self.assertAlmostEqual( mdl.frobeniusdist(mdl_copy), 0, places=2)

#RUN BELOW LINES TO SAVE GATESET (UNCOMMENT to regenerate) (SAVE)
if os.environ.get('PYGSTI_REGEN_REF_FILES','no').lower() in ("yes","1","true"):
Expand All @@ -167,7 +167,7 @@ def test_stdgst_matrix(self):
gsEstimate.set_all_parameterizations("full")
gsEstimate = pygsti.algorithms.gaugeopt_to_target(gsEstimate, mdl_compare)
print(gsEstimate.strdiff(mdl_compare))
self.assertAlmostEqual( gsEstimate.frobeniusdist(mdl_compare), 0, places=3)
self.assertAlmostEqual( gsEstimate.frobeniusdist(mdl_compare), 0, places=2)


def test_stdgst_map(self):
Expand Down

0 comments on commit c78ea56

Please sign in to comment.