Topological quantum mechanics