Important: Make one submission per group. Write Names and Unity IDs on every submission file of all group members. Name the submission files correctly as asked for.
pip install --user dwave-ocean-sdk
git clone https://github.com/dwavesystems/factoring-demo.git
factoring-demo/demo.py factoring-demo/factoring/interfaces.py https://github.com/dwavesystems/dwavebinarycsp/blob/master/dwavebinarycsp/factories/csp/circuits.pyand read the factoring paper, which explains how to express factoring as a binary CSP.
Turn in the files interface-sim.py, demo-sim.py, output-sim.txt, interface-hw.py, demo-hw.py, output-hw.txt
Turn in file cphase.txt (export as URL)
Turn in file adder.py
Consider an n-qubit input state. Use qiskit to create a circuit that changes the phase by pi for all values in which the high-order n/2 qubits are equal to the low-order n/2 qubits. In other words, consider a 6-bit value x[5:0]. The circuit should be true if and only if x[5:3] is the same as x[2:0].
Submit equal_phase.py, and equal_phase.txt: evidence that your circuit actually works for a 6-bit value. Note that a simple measurement in the computational basis will not show the phase shift.