Implementable Quantum Machine Learning Algorithms on Near-term Quantum Devices