Anders and Briegel in Python
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

investigate_rightphase.py 380B

12345678910111213
  1. from anders_briegel import graphsim
  2. from abp import clifford, qi
  3. import itertools
  4. import numpy as np
  5. for i, j in itertools.product(range(4), range(24)):
  6. operation, phase = clifford.conjugate(i, j)
  7. vop_u = clifford.unitaries[i]
  8. transform_u = clifford.unitaries[j]
  9. u = np.dot(transform_u, np.dot(vop_u, qi.hermitian_conjugate(transform_u)))
  10. #print u.round(2)