@classmethod<EOL><INDENT>def pauli_single(cls, num_qubits, index, pauli_label):<DEDENT>
tmp = Pauli.from_label(pauli_label)<EOL>z = np.zeros(num_qubits, dtype=np.bool)<EOL>x = np.zeros(num_qubits, dtype=np.bool)<EOL>z[index] = tmp.z[<NUM_LIT:0>]<EOL>x[index] = tmp.x[<NUM_LIT:0>]<EOL>return cls(z, x)<EOL>
Generate single qubit pauli at index with pauli_label with length num_qubits.

Args:
    num_qubits (int): the length of pauli
    index (int): the qubit index to insert the single qubii
    pauli_label (str): pauli

Returns:
    Pauli: single qubit pauli