all_traceless_pauli_choice_terms¶
-
forest.benchmarking.utils.
all_traceless_pauli_choice_terms
(qubits: Sequence[int], pauli_choice: str)¶ Generate list of all Pauli terms (with weight > 0) on N qubits with choice pauli.
If pauli_choice is ‘Z’ then this is identical to all_traceless_pauli_z_terms
Parameters: - qubits – The integer labels for the qubits
- pauli_choice – choice of which pauli to form combinations.
Returns: list of PauliTerm made from combinations of I and the given choice pauli