[docs] 8defshift_affected_qubits(equation:Equation,shift:int)->Equation: 9"""10 Shifts the qubits affected by the equation by the given amount, wrapping around if the index goes out of bounds.1112 For each Pauli in the equation hamiltonian, shifts the Pauli string by the given amount.13 i.e (shift = 1) IZIZ -> ZIZI, etc. !Might be unwanted! ZIII -> IIIZ14 Keeps the coefficients the same.1516 Args:17 equation: Equation to shift18 shift: Amount to shift by1920 Returns:21 Equation: New equation affecting the shifted qubits22 """23op=equation.hamiltonian2425ifshift==0:26returnequation2728npaulis=[]29ncoeffs=[]3031forp_string,coeffinop.label_iter():32p_string=p_string[shift:]+p_string[:shift]33npaulis.append(Pauli(data=p_string))34ncoeffs.append(coeff)3536new_op=SparsePauliOp(npaulis,coeffs=ncoeffs)3738returnEquation(new_op)