Quantum geometry and quantum algorithms