Homework 1



Important: Write Names and Unity IDs on every submission file. Name the submission file correctly as asked for.

  1. (0 points) Get a D-Wave account, download and install D-Wave Ocean as follows:
  2. (15 points, 5+15) Similar to the example with the 3-qubit solution of Lecture 3, slide 13, create an OR relation:

    Turn in a screen shot of both tabs of spreadsheet as file or.pdf

  3. (30 points, 15 each) Create an Ocean program for the OR relation in simulation and on actual hardware.

    Turn in files or-sim.py and or-hw.py

  4. (20 points) Generalize D-Wave's factoring example to return 4-bit factors. D-Wave factoring tutorial provides a rough idea of the problem.
  5. The Jupiter Notebook (Factoring Example) gives more details.

    Turn in files demo.py and interfaces.py

  6. (15 points) In Lecture 4, slide 17, there are errors in the XOR hamiltonian. The ground sets, indicated in green in the previous slide for a possible solution with an ancilla bit, are correct. Construct a correct XOR hamiltonian assuming qubits to be either in state 0 or 1 (Notice: the XOR slides are assuming a state -1 and +1!!!) by

    Submit xor.pdf, the snapshot of the Quantum Apprentice spreadsheet.

  7. (20 points) Proof that there is no solution of XOR with only 3 qubits.

    Submit proof.pdf