def __pauli_meas_gates(circuit, qreg, op):
    '\n    Add state measurement gates to a circuit.\n    '
    if (op not in ['X', 'Y', 'Z']):
        raise QiskitError("There's no X, Y or Z basis for this Pauli measurement")
    if (op == 'X'):
        circuit.u2(0.0, np.pi, qreg)
    elif (op == 'Y'):
        circuit.u2(0.0, (0.5 * np.pi), qreg)
Add state measurement gates to a circuit.
def __pauli_meas_gates(circuit, qreg, op):
    '\n    \n    '
    if (op not in ['X', 'Y', 'Z']):
        raise QiskitError("There's no X, Y or Z basis for this Pauli measurement")
    if (op == 'X'):
        circuit.u2(0.0, np.pi, qreg)
    elif (op == 'Y'):
        circuit.u2(0.0, (0.5 * np.pi), qreg)