Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rough jupyterlite prototype #356

Open
wants to merge 137 commits into
base: feature/reorganized-examples-with-jupyterlite
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
137 commits
Select commit Hold shift + click to select a range
6f97f67
initial reorg, not checked
benhong-amzn Jul 17, 2023
5bf7b9f
initial reorg
benhong-amzn Jul 17, 2023
1764de7
relabeling
benhong-amzn Jul 19, 2023
cf97917
add folders
benhong-amzn Jul 19, 2023
fd3c353
further reorg
benhong-amzn Jul 20, 2023
3145e4b
dealt with some of to_organize
benhong-amzn Jul 21, 2023
ab2eb79
categorization reconsideration
benhong-amzn Jul 26, 2023
7a7ca4a
resolved to_organize + minor reclassification
benhong-amzn Jul 26, 2023
7e98d44
hybrid jobs readmd
benhong-amzn Jul 27, 2023
7d4c6f9
hybrid job readmd
benhong-amzn Jul 27, 2023
7f10f70
hybrid jobs readmd
benhong-amzn Jul 27, 2023
66f3739
hybrid jobs readmd
benhong-amzn Jul 27, 2023
26d0480
hybrid job readmd correct
benhong-amzn Jul 27, 2023
faf7137
readme update
benhong-amzn Jul 31, 2023
6b2075f
qbraid intro
benhong-amzn Jul 31, 2023
9c91219
"get_devices" jaqcd to openqasm
benhong-amzn Jul 31, 2023
78bb123
typos
benhong-amzn Aug 1, 2023
2670b5b
rename certif_course folder
benhong-amzn Aug 2, 2023
070f43c
rename certif course to braket badge
benhong-amzn Aug 9, 2023
ded9669
readmd title and capitalization
benhong-amzn Aug 9, 2023
b07c624
rename alg implementation
benhong-amzn Aug 9, 2023
f23beab
tentative alternative organization md added
benhong-amzn Aug 9, 2023
c1dd06a
initial build
benhong-amzn Sep 5, 2023
97c1829
address mult top-level packages
benhong-amzn Sep 5, 2023
ee6c9b3
project name pyproject.toml
benhong-amzn Sep 5, 2023
f96d5ea
setup.py
benhong-amzn Sep 5, 2023
056152a
pyproject.toml
benhong-amzn Sep 5, 2023
0b01904
typo
benhong-amzn Sep 5, 2023
f5be236
typo
benhong-amzn Sep 5, 2023
32aca37
jupyterlite
benhong-amzn Sep 5, 2023
3a47e58
linked modules to jupyterlite
benhong-amzn Sep 6, 2023
723c73e
dependencies into kernel
benhong-amzn Sep 6, 2023
b4ffb6e
redundant python
benhong-amzn Sep 6, 2023
bdb13cf
conda instead of pip
benhong-amzn Sep 6, 2023
53f2379
deleted repo reference
benhong-amzn Sep 6, 2023
b2f84a6
try removing ipykernel
benhong-amzn Sep 6, 2023
da3e1a1
test
benhong-amzn Sep 6, 2023
f21ebbd
conda instead of pip
benhong-amzn Sep 6, 2023
f72d5d3
dep
benhong-amzn Sep 6, 2023
b0c1a62
dep
benhong-amzn Sep 6, 2023
3323637
dep order
benhong-amzn Sep 6, 2023
de1518d
dep
benhong-amzn Sep 6, 2023
780bc81
dep
benhong-amzn Sep 6, 2023
ce9add6
dep
benhong-amzn Sep 6, 2023
c82a3a4
dep
benhong-amzn Sep 6, 2023
1c9268a
dep
benhong-amzn Sep 6, 2023
9202d61
dep
benhong-amzn Sep 6, 2023
4ae6083
try
benhong-amzn Sep 6, 2023
dd33a0c
conda instead of mamba
benhong-amzn Sep 6, 2023
0686107
miniconda
benhong-amzn Sep 6, 2023
0013d78
work with mamba
benhong-amzn Sep 6, 2023
8571099
no version restrictions for now
benhong-amzn Sep 7, 2023
9698de1
test
benhong-amzn Sep 7, 2023
69decc5
test dep
benhong-amzn Sep 7, 2023
ee684f4
fix pip
benhong-amzn Sep 7, 2023
a7dd897
dep
benhong-amzn Sep 7, 2023
8b81700
test
benhong-amzn Sep 7, 2023
54f10d5
dep
benhong-amzn Sep 7, 2023
8942d3a
dep
benhong-amzn Sep 7, 2023
bb60eb3
dep
benhong-amzn Sep 8, 2023
0147a32
dep
benhong-amzn Sep 8, 2023
3b52fac
dep
benhong-amzn Sep 8, 2023
b34b757
dep
benhong-amzn Sep 8, 2023
aeff33e
dep
benhong-amzn Sep 8, 2023
c32f8d3
dep
benhong-amzn Sep 8, 2023
a189887
dep
benhong-amzn Sep 8, 2023
2771693
remove non-pure python
benhong-amzn Sep 8, 2023
93abdae
temp remove non-pure python
benhong-amzn Sep 8, 2023
e52cfd0
try removing pennylane-lightning
benhong-amzn Sep 8, 2023
6d27f01
openfermionpyscf temp remove
benhong-amzn Sep 8, 2023
e45c422
try keeping only openferminoinpyscf
benhong-amzn Sep 8, 2023
643403a
try removing all openfermion
benhong-amzn Sep 8, 2023
826aae9
try batches
benhong-amzn Sep 8, 2023
23518c4
add a couple more
benhong-amzn Sep 8, 2023
c945afe
try
benhong-amzn Sep 8, 2023
49da061
remove rest
benhong-amzn Sep 8, 2023
38f25fa
include pydantic
benhong-amzn Sep 8, 2023
f3aa83e
test
benhong-amzn Sep 8, 2023
a85cfe3
pydantic test
benhong-amzn Sep 8, 2023
79a0cbd
braket dependencies manually install?
benhong-amzn Sep 8, 2023
2fba7de
dep
benhong-amzn Sep 8, 2023
92d3241
sympy requires mpmath
benhong-amzn Sep 8, 2023
af7e615
mpmath import
benhong-amzn Sep 8, 2023
eb3b01c
mpmath
benhong-amzn Sep 8, 2023
84ba51f
sympy version
benhong-amzn Sep 8, 2023
e7ff46b
opt_einsum
benhong-amzn Sep 8, 2023
d386390
antlr4 issue?
benhong-amzn Sep 8, 2023
ae25a26
try downgrading antlr4
benhong-amzn Sep 8, 2023
3371b13
antlr4 update 4.10 for atndeserializer TypeError
benhong-amzn Sep 8, 2023
fd0740c
Could not deserialize ATN with version fix attempt
benhong-amzn Sep 8, 2023
e69ba55
remove docutils (prev 3.11)
benhong-amzn Sep 8, 2023
db69a95
revert to 3.10
benhong-amzn Sep 8, 2023
78f66d2
antlr older version + try to update mpl (rcparams)
benhong-amzn Sep 8, 2023
b9a6ca1
mpl 3.6.2 (mamba forge)
benhong-amzn Sep 8, 2023
88ba162
matplotlib...
benhong-amzn Sep 8, 2023
5d57891
matplotlib
benhong-amzn Sep 8, 2023
e0571de
antlr4 fun
benhong-amzn Sep 8, 2023
8922cab
antlr4 4.8 attempt
benhong-amzn Sep 8, 2023
f98d91c
antlr4 to 4.7.2 :/
benhong-amzn Sep 8, 2023
b232f66
antlr4 4.11
benhong-amzn Sep 8, 2023
5f938bc
ecos and cvxpy
benhong-amzn Sep 8, 2023
5a29350
4.9.2
benhong-amzn Sep 8, 2023
f6dcef1
rem ecos cvxpy
benhong-amzn Sep 8, 2023
51ce160
try adding antlr4-tools
benhong-amzn Sep 8, 2023
d444868
antlr 4.11.1
benhong-amzn Sep 8, 2023
5fbfba4
try rem openqasm3
benhong-amzn Sep 8, 2023
1d4d6d0
antlr4 4.9.2
benhong-amzn Sep 8, 2023
12d9a24
move all pure to pip and enforce versions
benhong-amzn Sep 9, 2023
5133914
add back openqasm3
benhong-amzn Sep 9, 2023
88736e1
try installing antlr4 thru conda-forge
benhong-amzn Sep 9, 2023
3d5c431
add typing-extensions
benhong-amzn Sep 9, 2023
ceb0039
antlr4 attempt + numpy version
benhong-amzn Sep 9, 2023
ff460fd
antlr4 upgrade to 4.11.1
benhong-amzn Sep 9, 2023
eeb9d8d
update antlr4
benhong-amzn Sep 9, 2023
51d4c77
try antlr 4.9.2 specification through conda-forge
benhong-amzn Sep 9, 2023
6b0e223
add tornado
benhong-amzn Sep 9, 2023
fbe3602
tornado through pip maybe
benhong-amzn Sep 9, 2023
e9e3053
try local tornado
benhong-amzn Sep 9, 2023
26dd45f
tornado
benhong-amzn Sep 9, 2023
dba78f0
tornado through pip
benhong-amzn Sep 9, 2023
583870c
remove tornado
benhong-amzn Sep 11, 2023
9f904ec
git attempt (tried local sourcing already)
benhong-amzn Sep 11, 2023
1cf7d9d
mamba/conda update
benhong-amzn Sep 11, 2023
b514774
remove tornado pip
benhong-amzn Sep 11, 2023
c8893e8
try
benhong-amzn Sep 11, 2023
c13ac0e
include tornado
benhong-amzn Sep 11, 2023
676b270
tornado-feedstock?
benhong-amzn Sep 12, 2023
5cd1745
dependencies
benhong-amzn Sep 16, 2023
32a1251
dep
benhong-amzn Sep 16, 2023
db9f15b
fix latex + internal paths, adapt alternative org
benhong-amzn Sep 16, 2023
1f68d3b
contents directory for jupyterlite
benhong-amzn Sep 16, 2023
e9ac9fb
content path
benhong-amzn Sep 16, 2023
716702d
jupyterlite contents
benhong-amzn Sep 16, 2023
ba153e6
jupyterlite demos + test
benhong-amzn Sep 20, 2023
1b08c03
mamba
benhong-amzn Sep 20, 2023
2a78672
remove mamba dupl
benhong-amzn Sep 20, 2023
52e9213
retrolite
benhong-amzn Sep 20, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Read the Docs configuration file for Sphinx projects
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details

# Required
version: 2

# Set the OS, Python version and other tools you might need
build:
os: ubuntu-22.04
tools:
python: "mambaforge-4.10"
jobs:
pre_create_environment:
# update mamba
- mamba update --yes --quiet --name=base mamba
- mamba --version

conda:
environment: docs/build-environment.yml

# Build documentation in the "docs/" directory with Sphinx
sphinx:
configuration: docs/conf.py

# Fail on all warnings to avoid broken references
# fail_on_warning: true

# Optionally build your docs in additional formats such as PDF and ePub
formats:
- pdf
# - epub
247 changes: 247 additions & 0 deletions ALTERNATIVE_ORGANIZATION.md

Large diffs are not rendered by default.

284 changes: 225 additions & 59 deletions README.md

Large diffs are not rendered by default.

Binary file added docs/.jupyterlite.doit.db
Binary file not shown.
Binary file added docs/_static/amz-braket.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_static/aws.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_static/braket-avatar.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
26 changes: 26 additions & 0 deletions docs/build-environment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: amazon-braket-examples

channels:
- conda-forge

dependencies:
- python==3.10
- pip
- myst-parser
- docutils >=0.18.1,<0.19
- sphinx==7.2.4
- pydata-sphinx-theme
- sphinx-book-theme
- sphinx-rtd-theme
- sphinxcontrib-apidoc
- sphinx-design
- jupyterlab >=3.5.3,<3.6
- jupyterlite-core >=0.1.0,<0.2.0
- empack >=3.1.0
- pydantic
- pydantic-core
- typing-extensions
- annotated-types
- pip:
- jupyterlite-sphinx >=0.9.1
- jupyterlite-xeus-python==0.9.4
40 changes: 40 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
"""Sphinx configuration."""
import datetime

# Sphinx configuration below.
project = "amazon-braket-examples"
copyright = "{}, Amazon.com".format(datetime.datetime.now().year)

extensions = [
"sphinx.ext.autodoc",
"sphinx.ext.viewcode",
"sphinx.ext.napoleon",
"sphinx.ext.todo",
"sphinx.ext.coverage",
"jupyterlite_sphinx",
"sphinx_design",
"myst_parser",
# 'nbsphinx',
]

myst_enable_extensions = ["colon_fence"]

source_suffix = ['.rst', '.md']
master_doc = "index"

autoclass_content = "both"
autodoc_member_order = "bysource"
default_role = "py:obj"

html_static_path = ["_static"]
html_theme = "sphinx_rtd_theme"
html_logo = "_static/aws.png"
html_title = "Amazon Braket Python SDK"
htmlhelp_basename = "{}doc".format(project)

language = "en"

napoleon_use_rtype = False

# jupyterlite_bind_ipynb_suffix = False
jupyterlite_contents = "modules"
40 changes: 40 additions & 0 deletions docs/environment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: xeus-python-kernel
channels:
- https://repo.mamba.pm/emscripten-forge
- https://repo.mamba.pm/conda-forge
dependencies:
- markupsafe
- matplotlib
- numpy >=1.17.3,<1.25.0
- pandas
- scipy
- antlr4-python3-runtime==4.9.2
- pip:
- jinja2==3.1.2
- oqpy==0.2.1
- urllib3==2.0.4
- keras==2.12.0
- setuptools
- boltons
- nest-asyncio
- networkx
- openpulse
- typing-extensions
- opt-einsum==3.3.0
- sympy==1.12
- mpmath==1.3.0
- pydantic==1.8.2
- awscli==1.29.4
- botocore==1.31.4
- boto3==1.28.3
- dask==2023.1.1
- openqasm3
- amazon-braket-sdk==1.54.2
- amazon-braket-schemas==1.19.1
- amazon-braket-default-simulator==1.20.0
- amazon-braket-pennylane-plugin==1.20.1
- amazon-braket-algorithm-library==1.4.1
- mypy-extensions==0.4.3
- pennylane==0.31.0
- jax==0.4.2
- qiskit_braket_provider==0.0.4
44 changes: 44 additions & 0 deletions docs/full-environment.saved
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: xeus-python-kernel
channels:
- https://repo.mamba.pm/emscripten-forge
- https://repo.mamba.pm/conda-forge
dependencies:
- jinja2==3.1.2
- keras==2.12.0
- markupsafe
- matplotlib
- oqpy==0.2.1
- numpy==1.23
- pandas
- scipy
- pip:
- colorama >=0.2.5,<=0.3.7
- awscli
- docutils
- botocore
- boto3
- s3transfer
- distributed
- msgpack-python
- lz4
- dask
- pydantic==1.9.0
- amazon-braket-sdk
- amazon-braket-schemas
- amazon-braket-default-simulator
- amazon-braket-pennylane-plugin
- amazon-braket-algorithm-library
- cvxpy==1.3.1
- ecos==2.0.12
- mypy-extensions==0.4.3
- PennyLane-Lightning==0.31.0
- pennylane==0.31.0
- pyscf
- h5py >=2.8
- openfermionpyscf==0.5
- openfermion==1.5.1
- jaxlib
- jax==0.4.2
- qiskit-aer==0.12.0
- qiskit_braket_provider==0.0.4
- qiskit-terra==0.23.3
33 changes: 33 additions & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
######################
Amazon Braket Examples
######################

.. replite::
:kernel: xeus-python
:toolbar: 0
:theme: JupyterLab Light
:width: 100%
:height: 600px

.. replite::
:kernel: xeus-python
:height: 600px

import matplotlib.pyplot as plt
import numpy as np

x = np.linspace(0, 2 * np.pi, 200)
y = np.sin(x)

fig, ax = plt.subplots()
ax.plot(x, y)
plt.show()

.. jupyterlite::
:width: 100%
:height: 600px

.. retrolite::
:width: 100%
:height: 600px

1 change: 1 addition & 0 deletions docs/modules
36 changes: 0 additions & 36 deletions environment.yml

This file was deleted.

This file was deleted.

Loading