Skip to content

Commit

Permalink
reformat tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
ibrahim-shehzad committed Jan 4, 2024
1 parent 6626386 commit fdb6ca8
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions docs/circuit_cutting/tutorials/LO_gate_cut_finder.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
},
{
"cell_type": "code",
"execution_count": 15,
"execution_count": 27,
"metadata": {},
"outputs": [
{
Expand All @@ -38,7 +38,7 @@
"<Figure size 831.997x294.311 with 1 Axes>"
]
},
"execution_count": 15,
"execution_count": 27,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -64,7 +64,7 @@
},
{
"cell_type": "code",
"execution_count": 16,
"execution_count": 28,
"metadata": {},
"outputs": [
{
Expand All @@ -73,21 +73,21 @@
"text": [
"\n",
"\n",
"---------- 4 Qubits per QPU, 2 QPUs ----------\n",
"--- 4 Qubits per QPU, 2 QPUs ---\n",
"Gamma = 1.0 , min_reached = True\n",
"[]\n",
"Subcircuits: AAAA \n",
"\n",
"\n",
"\n",
"---------- 3 Qubits per QPU, 2 QPUs ----------\n",
"--- 3 Qubits per QPU, 2 QPUs ---\n",
"Gamma = 9.0 , min_reached = True\n",
"[Cut(Action='CutTwoQubitGate', Gate=[17, ['cx', 2, 3]]), Cut(Action='CutTwoQubitGate', Gate=[25, ['cx', 2, 3]])]\n",
"Subcircuits: AAAB \n",
"\n",
"\n",
"\n",
"---------- 2 Qubits per QPU, 2 QPUs ----------\n",
"--- 2 Qubits per QPU, 2 QPUs ---\n",
"Gamma = 9.0 , min_reached = True\n",
"[Cut(Action='CutTwoQubitGate', Gate=[9, ['cx', 1, 2]]), Cut(Action='CutTwoQubitGate', Gate=[20, ['cx', 1, 2]])]\n",
"Subcircuits: AABB \n",
Expand All @@ -108,7 +108,7 @@
"\n",
"for num_qpus in range(num_QPUs, 1, -1):\n",
" for qpu_qubits in range(qubits_per_QPU, 1, -1):\n",
" print(f'\\n\\n---------- {qpu_qubits} Qubits per QPU, {num_qpus} QPUs ----------')\n",
" print(f'\\n\\n--- {qpu_qubits} Qubits per QPU, {num_qpus} QPUs ---')\n",
" \n",
" constraint_obj = DeviceConstraints(qubits_per_QPU = qpu_qubits, \n",
" num_QPUs = num_QPUs)\n",
Expand Down Expand Up @@ -190,7 +190,7 @@
},
{
"cell_type": "code",
"execution_count": 25,
"execution_count": 26,
"metadata": {},
"outputs": [
{
Expand All @@ -199,42 +199,42 @@
"text": [
"\n",
"\n",
"---------- 7 Qubits per QPU, 2 QPUs ----------\n",
"--- 7 Qubits per QPU, 2 QPUs ---\n",
"Gamma = 1.0 , min_reached = True\n",
"[]\n",
"Subcircuits: AAAAAAA \n",
"\n",
"\n",
"\n",
"---------- 6 Qubits per QPU, 2 QPUs ----------\n",
"--- 6 Qubits per QPU, 2 QPUs ---\n",
"Gamma = 3.0 , min_reached = True\n",
"[Cut(Action='CutTwoQubitGate', Gate=[12, ['cx', 3, 6]])]\n",
"Subcircuits: AAAAAAB \n",
"\n",
"\n",
"\n",
"---------- 5 Qubits per QPU, 2 QPUs ----------\n",
"--- 5 Qubits per QPU, 2 QPUs ---\n",
"Gamma = 9.0 , min_reached = True\n",
"[Cut(Action='CutTwoQubitGate', Gate=[10, ['cx', 3, 4]]), Cut(Action='CutTwoQubitGate', Gate=[12, ['cx', 3, 6]])]\n",
"Subcircuits: AAAABAC \n",
"\n",
"\n",
"\n",
"---------- 4 Qubits per QPU, 2 QPUs ----------\n",
"--- 4 Qubits per QPU, 2 QPUs ---\n",
"Gamma = 27.0 , min_reached = True\n",
"[Cut(Action='CutTwoQubitGate', Gate=[10, ['cx', 3, 4]]), Cut(Action='CutTwoQubitGate', Gate=[11, ['cx', 3, 5]]), Cut(Action='CutTwoQubitGate', Gate=[12, ['cx', 3, 6]])]\n",
"Subcircuits: AAAABCD \n",
"\n",
"\n",
"\n",
"---------- 3 Qubits per QPU, 2 QPUs ----------\n",
"--- 3 Qubits per QPU, 2 QPUs ---\n",
"Gamma = 243.0 , min_reached = True\n",
"[Cut(Action='CutTwoQubitGate', Gate=[9, ['cx', 2, 3]]), Cut(Action='CutTwoQubitGate', Gate=[10, ['cx', 3, 4]]), Cut(Action='CutTwoQubitGate', Gate=[11, ['cx', 3, 5]]), Cut(Action='CutTwoQubitGate', Gate=[12, ['cx', 3, 6]]), Cut(Action='CutTwoQubitGate', Gate=[15, ['cx', 2, 3]])]\n",
"Subcircuits: AABACDE \n",
"\n",
"\n",
"\n",
"---------- 2 Qubits per QPU, 2 QPUs ----------\n",
"--- 2 Qubits per QPU, 2 QPUs ---\n",
"Gamma = 2187.0 , min_reached = True\n",
"[Cut(Action='CutTwoQubitGate', Gate=[8, ['cx', 1, 3]]), Cut(Action='CutTwoQubitGate', Gate=[9, ['cx', 2, 3]]), Cut(Action='CutTwoQubitGate', Gate=[10, ['cx', 3, 4]]), Cut(Action='CutTwoQubitGate', Gate=[11, ['cx', 3, 5]]), Cut(Action='CutTwoQubitGate', Gate=[12, ['cx', 3, 6]]), Cut(Action='CutTwoQubitGate', Gate=[14, ['cx', 1, 3]]), Cut(Action='CutTwoQubitGate', Gate=[15, ['cx', 2, 3]])]\n",
"Subcircuits: ABCADEF \n",
Expand All @@ -260,7 +260,7 @@
"\n",
"for num_qpus in range(num_QPUs, 1, -1):\n",
" for qpu_qubits in range(qubits_per_QPU, 1, -1):\n",
" print(f'\\n\\n---------- {qpu_qubits} Qubits per QPU, {num_qpus} QPUs ----------')\n",
" print(f'\\n\\n--- {qpu_qubits} Qubits per QPU, {num_qpus} QPUs ---')\n",
" \n",
" constraint_obj = DeviceConstraints(qubits_per_QPU = qpu_qubits, \n",
" num_QPUs = num_QPUs)\n",
Expand Down

0 comments on commit fdb6ca8

Please sign in to comment.