def meas_gate(self, circuit, qreg, op):
if self.meas_fun is None:<EOL><INDENT>pass<EOL><DEDENT>else:<EOL><INDENT>self.meas_fun(circuit, qreg, op)<EOL><DEDENT>
Add measurement gates to a circuit.

Args:
    circuit (QuantumCircuit): circuit to add measurement to.
    qreg (tuple(QuantumRegister,int)): quantum register being measured.
    op (str): the basis label for the measurement.