|
94 | 94 | "name": "stdout", |
95 | 95 | "output_type": "stream", |
96 | 96 | "text": [ |
97 | | - "Quantum program link: https://platform.classiq.io/circuit/31s7JrRZWYNAeLtLEUrHCxXO4YG\n" |
| 97 | + "Quantum program link: https://platform.classiq.io/circuit/37tMs9Yhgj9Pm4fwVmLh1Jxp46E\n" |
98 | 98 | ] |
99 | 99 | } |
100 | 100 | ], |
|
161 | 161 | "name": "stdout", |
162 | 162 | "output_type": "stream", |
163 | 163 | "text": [ |
164 | | - "Synthesized MCX depth is 271\n", |
165 | | - "Quantum program link: https://platform.classiq.io/circuit/31s7KotFMIZjxx3juBOv79YSLsT\n" |
| 164 | + "Synthesized MCX depth is 239\n", |
| 165 | + "Quantum program link: https://platform.classiq.io/circuit/37tMslkNlfM2VnGuz4HydLQoBu3\n" |
166 | 166 | ] |
167 | 167 | } |
168 | 168 | ], |
|
173 | 173 | " max_width=MAX_WIDTH_2, optimization_parameter=OptimizationParameter.DEPTH\n", |
174 | 174 | ")\n", |
175 | 175 | "preferences_2 = Preferences(\n", |
176 | | - " backend_service_provider=\"IBM Quantum\", backend_name=\"ibm_brisbane\"\n", |
| 176 | + " backend_service_provider=\"IBM Quantum\", backend_name=\"ibm_boston\"\n", |
177 | 177 | ")\n", |
178 | 178 | "\n", |
179 | 179 | "\n", |
|
200 | 200 | "name": "stdout", |
201 | 201 | "output_type": "stream", |
202 | 202 | "text": [ |
203 | | - "Synthesized MCX cx-count is 168\n", |
204 | | - "Quantum program link: https://platform.classiq.io/circuit/31s7M6am6IJ7wZmDVRu37xNFyZt\n" |
| 203 | + "Synthesized MCX cx-count is 156\n", |
| 204 | + "Quantum program link: https://platform.classiq.io/circuit/37tMtbAcVYs38SdWEox00DnEVvC\n" |
205 | 205 | ] |
206 | 206 | } |
207 | 207 | ], |
|
214 | 214 | ")\n", |
215 | 215 | "\n", |
216 | 216 | "qprog_3 = synthesize(main, constraints=constraints_3, preferences=preferences_3)\n", |
217 | | - "write_qmod(main, \"mcx_14_ctrl_cx\")\n", |
218 | 217 | "print(f\"Synthesized MCX cx-count is {qprog_3.transpiled_circuit.count_ops['cx']}\")\n", |
219 | 218 | "show(qprog_3)" |
220 | 219 | ] |
|
231 | 230 | }, |
232 | 231 | { |
233 | 232 | "cell_type": "code", |
234 | | - "execution_count": 8, |
| 233 | + "execution_count": 9, |
235 | 234 | "id": "17", |
236 | 235 | "metadata": {}, |
237 | 236 | "outputs": [ |
238 | 237 | { |
239 | 238 | "name": "stdout", |
240 | 239 | "output_type": "stream", |
241 | 240 | "text": [ |
242 | | - "Quantum program link: https://platform.classiq.io/circuit/31s7uF4G5NptT3aWBiBdWKmRGHj\n" |
| 241 | + "Quantum program link: https://platform.classiq.io/circuit/37tNCjf0PYRVDNj0F1ASEyVxWqx\n" |
243 | 242 | ] |
244 | 243 | } |
245 | 244 | ], |
|
251 | 250 | " my_mcx(cntrl, target)\n", |
252 | 251 | "\n", |
253 | 252 | "\n", |
254 | | - "constraints_4 = Constraints(max_depth=1000)\n", |
| 253 | + "constraints_4 = Constraints(optimization_parameter=\"depth\")\n", |
255 | 254 | "preferences_4 = Preferences(optimization_level=0)\n", |
256 | 255 | "qprog_4 = synthesize(main, constraints=constraints_4, preferences=preferences_4)\n", |
257 | 256 | "show(qprog_4)" |
|
0 commit comments