Quantum Algorithms for Systems of Linear Equations Inspired by Adiabatic Quantum Computing.