Project I Merged
Project I Merged
Project I Merged
<qiskit.circuit.instructionset.InstructionSet at 0x265ecdc1b70>
Out[3]:
In [4]: circ.draw('mpl')
Out[4]:
Out[14]:
┌───┐ ░ ┌─┐
Out[16]:
q_0: ┤ H ├──■────■───░─┤M├──────
└───┘┌─┴─┐ │ ░ └╥┘┌─┐
q_1: ─────┤ X ├──┼───░──╫─┤M├───
└───┘┌─┴─┐ ░ ║ └╥┘┌─┐
q_2: ──────────┤ X ├─░──╫──╫─┤M├
└───┘ ░ ║ ║ └╥┘
c: 3/═══════════════════╩══╩══╩═
0 1 2
Out[19]:
In [ ]:
<qiskit.circuit.instructionset.InstructionSet at 0x1f176e651e0>
Out[3]:
┌───┐
q_0: ┤ H ├
├───┤
q_1: ┤ H ├
└───┘
Out[6]:
localhost:8888/nbconvert/html/Untitled2.ipynb?download=false 1/2
8/18/23, 12:21 AM Untitled2
Out[15]:
In [ ]:
localhost:8888/nbconvert/html/Untitled2.ipynb?download=false 2/2
8/18/23, 12:20 AM Untitled3
<qiskit.circuit.instructionset.InstructionSet at 0x1f165561d80>
Out[3]:
In [12]: qc.crx(theta, 0, 1)
<qiskit.circuit.instructionset.InstructionSet at 0x1f17fbc6ad0>
Out[12]:
<qiskit.circuit.instructionset.InstructionSet at 0x1f17fbc7490>
Out[13]:
In [23]: plot_histogram(counts)
localhost:8888/nbconvert/html/Untitled3.ipynb?download=false 1/2
8/18/23, 12:20 AM Untitled3
Out[23]:
In [ ]:
localhost:8888/nbconvert/html/Untitled3.ipynb?download=false 2/2
8/18/23, 12:20 AM Untitled4
In [3]: qc = QuantumCircuit(2, 2)
In [4]: qc.h(0)
<qiskit.circuit.instructionset.InstructionSet at 0x1d78a8c7f10>
Out[4]:
In [6]: qc.crx(theta, 0, 1)
<qiskit.circuit.instructionset.InstructionSet at 0x1d79e2d4c10>
Out[6]:
In [8]: qc.cry(theta, 0, 1)
<qiskit.circuit.instructionset.InstructionSet at 0x1d7a0265630>
Out[8]:
Out[10]:
theta = 0.5
localhost:8888/nbconvert/html/Untitled4.ipynb?download=false 1/2
8/18/23, 12:20 AM Untitled4
In [ ]:
localhost:8888/nbconvert/html/Untitled4.ipynb?download=false 2/2