(20 points)
In HW1, we had a solution to the "imply" in a 4 Qbit embedding
that we tested in the spreadsheet. Notice that if the resulting
embedding does not match the bipartite graph we need, you can
embed q1+q3 and q2+q4 to get a symmetric solution, which is a
match for the graph we want. Let's now transform this into
Quantum machine instructions (QMI).
But first, let's run some QMI code:
cd qOp
cd examples
cd dw
bash A-execute-qmi.bash
Copy the file A-execute-qmi.bash to imply4-qmi.bash, then create the
same embedding as in the spreadsheet for the "imply equation".
Hints:
- Check out embedding
(slide 16), which shows the Qbit numbering in the Chimera graph. The
coupler (strength) indexing counts down top-to-bottom, i.e., you get
the following connections:
- Q0000 -- C0000 -- Q0004
- Q0000 -- C0001 -- Q0005
- Q0000 -- C0002 -- Q0006
- Q0000 -- C0003 -- Q0007
- Q0001 -- C0004 -- Q0004
- Q0001 -- C0005 -- Q0005
- Q0001 -- C0006 -- Q0006
- Q0001 -- C0007 -- Q0007
- etc.
The solution should have 3 ground states (solutions with objective=0) matching the
ones in the spreadsheet, but you may have to translate from the Qbit
numbering of QMI to the one in the spreadsheet. If you have
more/less than 4 solutions or different ones than expected, then your
weights/strengths are wrong.
Turn in file imply4.bash (dw program) and imply4a.pdf (spreadsheet snapshot)