Anders and Briegel in Python
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

1234567891011121314
  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()