def width(self):
        """Return number of qubits plus clbits in circuit.

        Returns:
            int: Width of circuit.

        """
        return sum(reg.size for reg in self.qregs+self.cregs)
Return number of qubits plus clbits in circuit.

        Returns:
            int: Width of circuit.