|
|
@@ -1,4 +1,4 @@ |
|
|
|
from abp import make_tables |
|
|
|
from abp import clifford |
|
|
|
from abp import qi |
|
|
|
import numpy as np |
|
|
|
|
|
|
@@ -7,5 +7,5 @@ def test_normalize_global_phase(): |
|
|
|
u = qi.pz |
|
|
|
phase = np.random.uniform(0, 2*np.pi) |
|
|
|
m = np.exp(1j*phase) * u |
|
|
|
normalized = make_tables.normalize_global_phase(m) |
|
|
|
normalized = clifford.normalize_global_phase(m) |
|
|
|
assert np.allclose(normalized, u) |