Quantum Tasks