Quantum dimension