Anders and Briegel in Python
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
171B

  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)