Quantum algorithmic measurement