(self)
| 87 | assert_almost_equal(val3, val1 * val2, err_msg=msg) |
| 88 | |
| 89 | def test_hermdiv(self): |
| 90 | for i in range(5): |
| 91 | for j in range(5): |
| 92 | msg = f"At i={i}, j={j}" |
| 93 | ci = [0] * i + [1] |
| 94 | cj = [0] * j + [1] |
| 95 | tgt = herm.hermadd(ci, cj) |
| 96 | quo, rem = herm.hermdiv(tgt, ci) |
| 97 | res = herm.hermadd(herm.hermmul(quo, ci), rem) |
| 98 | assert_equal(trim(res), trim(tgt), err_msg=msg) |
| 99 | |
| 100 | def test_hermpow(self): |
| 101 | for i in range(5): |
nothing calls this directly
no test coverage detected