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.

test_local_cliffords.py 268B

8 vuotta sitten
123456789
  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")