Tag Quantum Algorithms