See the attached file. I highly recommend you do coding step-by-step, one objective at a time. Once that is achieved, move on to the next one. Also, when you install the quantum framework, all documentation pages will be installed locally, like the rest of Mathematica's built-in functions documentation pages. So look at those documentations, for example, QuantumEvolve.
Attachments: