qiskit/circuit/quantumcircuit.py
def _check_dups(self, qubits):
        """Raise exception if list of qubits contains duplicates."""
        squbits = set(qubits)
        if len(squbits) != len(qubits):
            raise QiskitError("duplicate qubit arguments")
def _check_dups(self, qubits):
        squbits = set(qubits)
        if len(squbits) != len(qubits):
            raise QiskitError("duplicate qubit arguments")
def _check_dups ( self , qubits ) : squbits = set ( qubits ) if len ( squbits ) != len ( qubits ) : raise QiskitError ( "duplicate qubit arguments" )
Raise exception if list of qubits contains duplicates.
Raise exception if list of qubits contains duplicates .