Anfonwch hwn fel neges destun: Exact treatment of finite-dimensional and infinite-dimensional quantum systems