Quantum algorithm and measurement based models of computation.