From a quantum annealer to a universal quantum computer