stim.FlipSimulator.set_pauli_flips(paulis: Iterable[int | str], qubit: int) w len(paulis) == batch_size
stim.FlipSimulator.xor_pauli_flips(paulis: Iterable[int | str], qubit: int) w len(paulis) == batch_size
to avoid needing to peek and set
stimFlipSimulator.apply_pauli_error(pauli: str|int, mask: Iterable[bool]) w len(mask) == batch_size * qubits
for the more common case of wanting to apply 1 pauli error, but selectively over both qubits and simulation indices
(might be more clever ways of providing the ~2D mask other than just flattening it, could do Iterable[Iterable[bool]], but then it's harder to prevent ragged data / take advantage of it being rectangular)
stim.FlipSimulator.set_pauli_flips(paulis: Iterable[int | str], qubit: int)
wlen(paulis) == batch_size
stim.FlipSimulator.xor_pauli_flips(paulis: Iterable[int | str], qubit: int)
wlen(paulis) == batch_size
to avoid needing to peek and setstimFlipSimulator.apply_pauli_error(pauli: str|int, mask: Iterable[bool])
wlen(mask) == batch_size * qubits
for the more common case of wanting to apply 1 pauli error, but selectively over both qubits and simulation indices (might be more clever ways of providing the ~2D mask other than just flattening it, could doIterable[Iterable[bool]]
, but then it's harder to prevent ragged data / take advantage of it being rectangular)