code: def cdim(self):
          
          if self._cdim is None:
              self._cdim = sum((circuit.cdim for circuit in self.operands))
          return self._cdim
docs: Circuit dimension (sum of dimensions of the operands)