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 line
277B

  1. from abp.graphstate import GraphState
  2. from abp.util import xyz
  3. import networkx as nx
  4. def simple_test():
  5. g = GraphState()
  6. g.add_node(0, position = xyz(10, 0, 0))
  7. g.add_node(1, position = xyz(1, 0, 0))
  8. g.act_hadamard(0)
  9. g.act_hadamard(1)
  10. g.act_cz(0, 1)