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.

scale.py 171B

123456789101112
  1. from abp import GraphState
  2. N = int(1e6)
  3. g = GraphState()
  4. g.add_nodes(xrange(N))
  5. for i in range(N):
  6. g.act_hadamard(i)
  7. for i in range(N):
  8. g.act_cz(i, (i+1) % N)