Ejemplo n.º 1
0
 def test_calc_attenuation_forward(self):
     """basic test for correct numbers"""
     a = 2e-4
     b = 0.7
     l = 1.
     result = atten.calc_attenuation_forward(self.gateset, a, b, l)
     self.assertTrue(np.allclose(result, self.gateset_result))
Ejemplo n.º 2
0
 def test_calc_attenuation_forward(self):
     """basic test for correct numbers"""
     a = 2e-4
     b = 0.7
     l = 1.
     result = atten.calc_attenuation_forward(self.gateset, a, b, l)
     self.assertTrue(np.allclose(result, self.gateset_result))
Ejemplo n.º 3
0
 def test_calc_attenuation_forward(self):
     """basic test for correct numbers"""
     a = 2e-4
     b = 0.7
     gate_length = 1.0
     result = atten.calc_attenuation_forward(self.gateset, a, b,
                                             gate_length)
     assert np.allclose(result, self.gateset_result)