qiskit/extensions/unitary.py
def unitary(self, obj, qubits, label=None):
    """Apply u2 to q."""
    if isinstance(qubits, QuantumRegister):
        qubits = qubits[:]
    return self.append(UnitaryGate(obj, label=label), qubits, [])
def unitary(self, obj, qubits, label=None):
    """Apply u2 to q."""
    if isinstance(qubits, QuantumRegister):
        qubits = qubits[:]
    return self.append(UnitaryGate(obj, label=label), qubits, [])
def unitary ( self , obj , qubits , label = None ) : if isinstance ( qubits , QuantumRegister ) : qubits = qubits [ : ] return self . append ( UnitaryGate ( obj , label = label ) , qubits , [ ] )
Apply u2 to q.
Apply u2 to q .