emanuel-malvetti

Results 2 issues of emanuel-malvetti

This branch implements decompositions for arbitrary isometries, diagonal gates and uniformly controlled single-qubit gates. (There is also code for uniformly controlled Rz rotations but it is not exposed in the...

The following matrix cannot be decomposed even though it is unitary. ``` U = np.matrix([[(-0.7108860402090058-0.7033072016973199j), (-9.403468524726843e-05+9.504800300819127e-05j)], [(-9.507314515605492e-05+9.400926537078691e-05j), (-0.7031170805491339-0.7110740841596025j)]]) ``` In fact running `np.linalg.norm(U.getH()*U - np.eye(2))` returns `5.462198399343198e-16`. Reducing `TOLERANCE` in...