I need to manipulate phases in 2 qubits. I will eventually create 34 distinct phase sets to map to an alphabet I built.

I see https://github.com/oreilly-qc/oreilly-qc.github.io/blob/master/samples/Qiskit/ch07_08_qft_rotating_phases.py

Is there a simple qiskit or qc example of a 2 qubit program that results in the following by using 45, and 90 degree phasing(see pic added)?:

As the letters change, so will each phase in each qubit. Any help appreciated. Here is the first "letter" (>)

enter image description here

  • $\begingroup$ I'm not sure if I understand perfectly - you have 2 qubits, and where do you want to apply the phase? For example, you could have it as $$ |0\rangle + e^{2 \pi i k / 34} |1\rangle $$ where $$ k \in [0, 33] $$ $\endgroup$ – C. Kang Jun 12 at 22:12
  • $\begingroup$ Thanks C. Looking for simple qiskit example that shows 2 quibit phase changes, specifically to the |0> of the first and second quibit. $\endgroup$ – David Grunwald Jun 17 at 13:35
  • $\begingroup$ Can you give a concrete example in braket form? I'm still a bit confused as to what you're asking for specifically $\endgroup$ – C. Kang Jun 17 at 16:25
  • $\begingroup$ Thanks - I am looking for simple qiskit code to phase change 2 quibits. I need 36 phase changes to a 2 qubit register. Apologize for any confusion. $\endgroup$ – David Grunwald Jun 24 at 16:31
  • $\begingroup$ More specifically, what are the input vector states and the output vector states you want? $\endgroup$ – C. Kang Jun 24 at 17:36