Quantum circuit design for solving linear systems of equations