Open Strilanc opened 2 weeks ago
For example
assert stim.PauliString({5: "X", 7: "Y"}) == stim.PauliString("_____X_Y") assert stim.PauliString({"X": 5, "Y": [6, 7]}) == stim.PauliString("_____XYY") with pytest.raises(ValueError, match="qubit specified twice"): stim.PauliString({"X": 0, "Y": 0})
Could also accept stim.GateTarget lists.
stim.GateTarget
For example
Could also accept
stim.GateTarget
lists.