|
178 | 178 | }, |
179 | 179 | { |
180 | 180 | "cell_type": "code", |
181 | | - "execution_count": 7, |
| 181 | + "execution_count": null, |
182 | 182 | "id": "8e05e0f8", |
183 | 183 | "metadata": {}, |
184 | | - "outputs": [ |
185 | | - { |
186 | | - "data": { |
187 | | - "application/vnd.jupyter.widget-view+json": { |
188 | | - "model_id": "4410a84a0ec841a9a5daf7aa1e27c25b", |
189 | | - "version_major": 2, |
190 | | - "version_minor": 1 |
191 | | - }, |
192 | | - "text/plain": [ |
193 | | - "<qsharp_widgets.Histogram object at 0x10e17b450>" |
194 | | - ] |
195 | | - }, |
196 | | - "execution_count": 7, |
197 | | - "metadata": {}, |
198 | | - "output_type": "execute_result" |
199 | | - } |
200 | | - ], |
| 184 | + "outputs": [], |
201 | 185 | "source": [ |
202 | 186 | "res = device.simulate(qir, shots=1000, type=\"clifford\")\n", |
203 | 187 | "corrected_logical_results = decoder.decode_results(res, \"Z\")\n", |
|
214 | 198 | }, |
215 | 199 | { |
216 | 200 | "cell_type": "code", |
217 | | - "execution_count": 8, |
| 201 | + "execution_count": null, |
218 | 202 | "id": "b0f2063e", |
219 | 203 | "metadata": {}, |
220 | | - "outputs": [ |
221 | | - { |
222 | | - "data": { |
223 | | - "application/vnd.jupyter.widget-view+json": { |
224 | | - "model_id": "f41032d29c7c4f31948d7089c786d40e", |
225 | | - "version_major": 2, |
226 | | - "version_minor": 1 |
227 | | - }, |
228 | | - "text/plain": [ |
229 | | - "<qsharp_widgets.Histogram object at 0x108584510>" |
230 | | - ] |
231 | | - }, |
232 | | - "metadata": {}, |
233 | | - "output_type": "display_data" |
234 | | - }, |
235 | | - { |
236 | | - "data": { |
237 | | - "application/vnd.jupyter.widget-view+json": { |
238 | | - "model_id": "eca2be5fcf0f468ca6f28458fef98dd3", |
239 | | - "version_major": 2, |
240 | | - "version_minor": 1 |
241 | | - }, |
242 | | - "text/plain": [ |
243 | | - "<qsharp_widgets.Histogram object at 0x10e2a0690>" |
244 | | - ] |
245 | | - }, |
246 | | - "metadata": {}, |
247 | | - "output_type": "display_data" |
248 | | - } |
249 | | - ], |
| 204 | + "outputs": [], |
250 | 205 | "source": [ |
251 | 206 | "noise = NoiseConfig()\n", |
252 | 207 | "\n", |
|
289 | 244 | }, |
290 | 245 | { |
291 | 246 | "cell_type": "code", |
292 | | - "execution_count": 9, |
| 247 | + "execution_count": null, |
293 | 248 | "id": "35e7dc3c", |
294 | 249 | "metadata": {}, |
295 | | - "outputs": [ |
296 | | - { |
297 | | - "data": { |
298 | | - "application/vnd.jupyter.widget-view+json": { |
299 | | - "model_id": "d79a1d1efe2449f08aa22c870acc2def", |
300 | | - "version_major": 2, |
301 | | - "version_minor": 1 |
302 | | - }, |
303 | | - "text/plain": [ |
304 | | - "<qsharp_widgets.Histogram object at 0x10836de90>" |
305 | | - ] |
306 | | - }, |
307 | | - "metadata": {}, |
308 | | - "output_type": "display_data" |
309 | | - }, |
310 | | - { |
311 | | - "data": { |
312 | | - "application/vnd.jupyter.widget-view+json": { |
313 | | - "model_id": "af464fa55640435ca6362061162b0e60", |
314 | | - "version_major": 2, |
315 | | - "version_minor": 1 |
316 | | - }, |
317 | | - "text/plain": [ |
318 | | - "<qsharp_widgets.Histogram object at 0x10e134a90>" |
319 | | - ] |
320 | | - }, |
321 | | - "metadata": {}, |
322 | | - "output_type": "display_data" |
323 | | - } |
324 | | - ], |
| 250 | + "outputs": [], |
325 | 251 | "source": [ |
326 | 252 | "flattened = [r for res in corrected_logical_results for r in res]\n", |
327 | 253 | "display(Histogram(map(str, flattened)))\n", |
|
0 commit comments