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.

19 lines
255B

  1. from abp import GraphState
  2. from abp import Client
  3. import time
  4. psi = Client()
  5. psi.draw()
  6. psi.add_nodes(range(10))
  7. psi.draw()
  8. psi.act_hadamard(0)
  9. psi.act_hadamard(1)
  10. psi.draw()
  11. psi.act_cz(0, 1)
  12. psi.draw()
  13. psi.act_cz(0, 1)
  14. server.draw()
  15. server.shutdown()