|
| 1 | +{ |
| 2 | + "cells": [ |
| 3 | + { |
| 4 | + "cell_type": "markdown", |
| 5 | + "id": "e385a43f", |
| 6 | + "metadata": {}, |
| 7 | + "source": [ |
| 8 | + "# Test" |
| 9 | + ] |
| 10 | + }, |
| 11 | + { |
| 12 | + "cell_type": "code", |
| 13 | + "execution_count": 10, |
| 14 | + "id": "8c03d3e4", |
| 15 | + "metadata": {}, |
| 16 | + "outputs": [ |
| 17 | + { |
| 18 | + "ename": "ModuleNotFoundError", |
| 19 | + "evalue": "No module named 'quantum-simulation-recipe'", |
| 20 | + "output_type": "error", |
| 21 | + "traceback": [ |
| 22 | + "\u001b[0;31m---------------------------------------------------------------------------\u001b[0m", |
| 23 | + "\u001b[0;31mModuleNotFoundError\u001b[0m Traceback (most recent call last)", |
| 24 | + "Cell \u001b[0;32mIn[10], line 2\u001b[0m\n\u001b[1;32m 1\u001b[0m \u001b[38;5;28;01mimport\u001b[39;00m \u001b[38;5;21;01mimportlib\u001b[39;00m \n\u001b[0;32m----> 2\u001b[0m qsr \u001b[38;5;241m=\u001b[39m \u001b[43mimportlib\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mimport_module\u001b[49m\u001b[43m(\u001b[49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[38;5;124;43mquantum-simulation-recipe\u001b[39;49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[43m)\u001b[49m\n\u001b[1;32m 4\u001b[0m \u001b[38;5;66;03m# from jupyter_book import *\u001b[39;00m\n\u001b[1;32m 5\u001b[0m \u001b[38;5;66;03m# from quantum_simulation_recipe import *\u001b[39;00m\n\u001b[1;32m 6\u001b[0m \u001b[38;5;28;01mfrom\u001b[39;00m \u001b[38;5;21;01mqiskit_algorithms\u001b[39;00m \u001b[38;5;28;01mimport\u001b[39;00m \u001b[38;5;241m*\u001b[39m\n", |
| 25 | + "File \u001b[0;32m/opt/homebrew/Caskroom/miniforge/base/lib/python3.10/importlib/__init__.py:126\u001b[0m, in \u001b[0;36mimport_module\u001b[0;34m(name, package)\u001b[0m\n\u001b[1;32m 124\u001b[0m \u001b[38;5;28;01mbreak\u001b[39;00m\n\u001b[1;32m 125\u001b[0m level \u001b[38;5;241m+\u001b[39m\u001b[38;5;241m=\u001b[39m \u001b[38;5;241m1\u001b[39m\n\u001b[0;32m--> 126\u001b[0m \u001b[38;5;28;01mreturn\u001b[39;00m \u001b[43m_bootstrap\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43m_gcd_import\u001b[49m\u001b[43m(\u001b[49m\u001b[43mname\u001b[49m\u001b[43m[\u001b[49m\u001b[43mlevel\u001b[49m\u001b[43m:\u001b[49m\u001b[43m]\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mpackage\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mlevel\u001b[49m\u001b[43m)\u001b[49m\n", |
| 26 | + "File \u001b[0;32m<frozen importlib._bootstrap>:1050\u001b[0m, in \u001b[0;36m_gcd_import\u001b[0;34m(name, package, level)\u001b[0m\n", |
| 27 | + "File \u001b[0;32m<frozen importlib._bootstrap>:1027\u001b[0m, in \u001b[0;36m_find_and_load\u001b[0;34m(name, import_)\u001b[0m\n", |
| 28 | + "File \u001b[0;32m<frozen importlib._bootstrap>:1004\u001b[0m, in \u001b[0;36m_find_and_load_unlocked\u001b[0;34m(name, import_)\u001b[0m\n", |
| 29 | + "\u001b[0;31mModuleNotFoundError\u001b[0m: No module named 'quantum-simulation-recipe'" |
| 30 | + ] |
| 31 | + } |
| 32 | + ], |
| 33 | + "source": [ |
| 34 | + "import importlib \n", |
| 35 | + "qsr = importlib.import_module(\"quantum-simulation-recipe\")\n", |
| 36 | + "\n", |
| 37 | + "# from jupyter_book import *\n", |
| 38 | + "from quantum_simulation_recipe import *\n", |
| 39 | + "from qiskit_algorithms import *" |
| 40 | + ] |
| 41 | + } |
| 42 | + ], |
| 43 | + "metadata": { |
| 44 | + "kernelspec": { |
| 45 | + "display_name": "Python 3.8.8 ('base')", |
| 46 | + "language": "python", |
| 47 | + "name": "python3" |
| 48 | + }, |
| 49 | + "language_info": { |
| 50 | + "codemirror_mode": { |
| 51 | + "name": "ipython", |
| 52 | + "version": 3 |
| 53 | + }, |
| 54 | + "file_extension": ".py", |
| 55 | + "mimetype": "text/x-python", |
| 56 | + "name": "python", |
| 57 | + "nbconvert_exporter": "python", |
| 58 | + "pygments_lexer": "ipython3", |
| 59 | + "version": "3.10.14" |
| 60 | + }, |
| 61 | + "vscode": { |
| 62 | + "interpreter": { |
| 63 | + "hash": "4e8ef2f9fcac0817bca9a7ca376f64f20b4df5ea3bf7af756a50bda7d3557ea6" |
| 64 | + } |
| 65 | + } |
| 66 | + }, |
| 67 | + "nbformat": 4, |
| 68 | + "nbformat_minor": 5 |
| 69 | +} |
0 commit comments