def __pauli_meas_gates(circuit, qreg, op):
if op not in ['<STR_LIT:X>', '<STR_LIT:Y>', '<STR_LIT>']:<EOL><INDENT>raise QiskitError("<STR_LIT>"<EOL>"<STR_LIT>")<EOL><DEDENT>if op == "<STR_LIT:X>":<EOL><INDENT>circuit.u2(<NUM_LIT:0.>, np.pi, qreg)  <EOL><DEDENT>elif op == "<STR_LIT:Y>":<EOL><INDENT>circuit.u2(<NUM_LIT:0.>, <NUM_LIT:0.5> * np.pi, qreg)<EOL><DEDENT>
Add state measurement gates to a circuit.