Anders and Briegel in Python
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
286B

  1. from abp.fancy import GraphState
  2. from abp.util import xyz
  3. import itertools
  4. psi = GraphState()
  5. grid = itertools.product(range(10), range(10))
  6. for i, (x, y) in enumerate(grid):
  7. psi.add_qubit(i, position=xyz(x, y, 0), vop=0)
  8. for i in range(50):
  9. psi.act_cz(i, i+1)
  10. psi.update()