Anders and Briegel in Python
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

10 lines
268B

  1. import local_cliffords as lc
  2. def test_identify_pauli():
  3. assert lc.identify_pauli(lc.px) == "+x"
  4. assert lc.identify_pauli(-lc.px) == "-x"
  5. assert lc.identify_pauli(-lc.pz) == "-z"
  6. def test_get_action():
  7. assert lc.get_action(lc.i) == ("+x", "+y", "+z")