Quanlse/Simulator/__init__.py
def dim(self) -> int:
        """
        Return the dimension of the Hilbert space.
        """
        _dim = 1
        if isinstance(self.sysLevel, int):
            _dim = self.sysLevel ** self.subSysNum

        elif isinstance(self.sysLevel, list):
            _dim = 1
            for level in self.sysLevel:
                _dim = _dim * level

        return _dim

        Return the dimension of the Hilbert space.
        
Return the dimension of the Hilbert space.
Return the dimension of the Hilbert space .
def dim(self) -> int:
        _dim = 1
        if isinstance(self.sysLevel, int):
            _dim = self.sysLevel ** self.subSysNum
        elif isinstance(self.sysLevel, list):
            _dim = 1
            for level in self.sysLevel:
                _dim = _dim * level
        return _dim
def dim ( self ) -> int : _dim = 1 if isinstance ( self . sysLevel , int ) : _dim = self . sysLevel ** self . subSysNum elif isinstance ( self . sysLevel , list ) : _dim = 1 for level in self . sysLevel : _dim = _dim * level return _dim
Return the dimension of the Hilbert space.
Return the dimension of the Hilbert space .
"""
        Return the dimension of the Hilbert space.
        """
self