Applied Quantum Computing III: Algorithm and Software