qiskit/circuit/instructionset.py
def q_if(self, *qregs):
        """Add controls to all instructions."""
        for gate in self.instructions:
            gate.q_if(*qregs)
        return self
def q_if(self, *qregs):
        for gate in self.instructions:
            gate.q_if(*qregs)
        return self
def q_if ( self , * qregs ) : for gate in self . instructions : gate . q_if ( * qregs ) return self
Add controls to all instructions.
Add controls to all instructions .