forked from ICHEC/MSc-QT-23
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Jb
- Loading branch information
Showing
23 changed files
with
251 additions
and
762 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: deploy-book | ||
|
||
# Only run this when the master branch changes | ||
on: | ||
push: | ||
branches: | ||
- jb | ||
|
||
# This job installs dependencies, build the book, and pushes it to `gh-pages` | ||
jobs: | ||
deploy-book: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
# Install dependencies | ||
- name: Set up Python 3.12 | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: 3.12 | ||
|
||
- name: Install dependencies | ||
run: | | ||
pip install -r requirements.txt | ||
# Build the book | ||
- name: Build the book | ||
run: | | ||
jupyter-book build . | ||
# Push the book's HTML to github-pages | ||
- name: GitHub Pages action | ||
uses: peaceiris/actions-gh-pages@v3.9.3 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: ./_build/html | ||
enable_jekyll: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
# Book settings | ||
# Learn more at https://jupyterbook.org/customize/config.html | ||
|
||
title: Lecture Notes from ICHEC | ||
author: ICHEC Team | ||
logo: logo.png | ||
|
||
# Force re-execution of notebooks on each build. | ||
# See https://jupyterbook.org/content/execute.html | ||
execute: | ||
execute_notebooks: force | ||
|
||
# Define the name of the latex output file for PDF builds | ||
latex: | ||
latex_documents: | ||
targetname: book.tex | ||
|
||
# Add a bibtex file so that we can create citations | ||
bibtex_bibfiles: | ||
- references.bib | ||
|
||
# Information about where the book exists on the web | ||
repository: | ||
url: https://github.com/ICHEC/qpcc # Online location of your book | ||
path_to_book: ./ # Optional path to your book, relative to the repository root | ||
branch: jb # Which branch of the repository should be used when creating links (optional) | ||
|
||
# Add GitHub buttons to your book | ||
# See https://jupyterbook.org/customize/config.html#add-a-link-to-your-repository | ||
html: | ||
use_issues_button: true | ||
use_repository_button: true | ||
|
||
html: | ||
extra_footer: "Copyright@2022" | ||
|
||
# remove jupyterbooks copyright info | ||
sphinx: | ||
extra_extensions: | ||
- sphinxcontrib.mermaid | ||
config: | ||
html_show_copyright: false | ||
|
||
parse: | ||
myst_enable_extensions: | ||
- amsmath | ||
- colon_fence | ||
- deflist | ||
- dollarmath | ||
- html_admonition | ||
- html_image | ||
- linkify | ||
- replacements | ||
- smartquotes | ||
- substitution | ||
- tasklist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
p {text-align: justify;} | ||
|
||
.bd-main .bd-content .bd-article-container { | ||
max-width: 81em; /* default is 60em */ | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Table of contents | ||
# Learn more at https://jupyterbook.org/customize/toc.html | ||
|
||
format: jb-book | ||
root: index | ||
|
||
chapters: | ||
- file: pyqm-week1/README.md | ||
- file: pyqm-week2/README.md | ||
- file: pyqm-week3/README.md | ||
- file: pyqm-week4/README.md | ||
- file: pyqm-week5/README.md | ||
- file: pyqm-week6/README.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,47 @@ | ||
# Week 1 Contents | ||
# Week 1: Variables, data structures, and operations | ||
|
||
## 1.1 - Variables - [[Notebook]](./notebooks/pyqm-1.1-variables.ipynb) - [[Video]](https://youtu.be/dU8NKvAxcnE) | ||
## 1.1 - Variables - [Notebook](./notebooks/pyqm-1.1-variables.ipynb) - [Video](https://youtu.be/dU8NKvAxcnE) | ||
|
||
- Integer and Float Variables | ||
- Scientific Notation | ||
- Comparison Operators and Boolean Variables | ||
- Complex Numbers | ||
- Strings | ||
- Casting | ||
- None Type | ||
- Operator Precedence | ||
|
||
## 1.2 - Data Structures - [[Notebook]](./notebooks/pyqm-1.2-data-structures.ipynb) - [[Video]](https://youtu.be/yCQQwTEaMvs) | ||
## 1.2 - Data Structures - [Notebook](./notebooks/pyqm-1.2-data-structures.ipynb) - [Video](https://youtu.be/yCQQwTEaMvs) | ||
|
||
- Lists | ||
- Tuples | ||
- Sets | ||
- Dictionaries | ||
- Operations With Data Structures: | ||
- Operations with Data Structures | ||
- Properties | ||
- Changing, Adding, And Removing Elements | ||
- Slicing And Reorganising | ||
- Changing, Adding, and Removing Elements | ||
- Slicing and Reorganising | ||
- Combining Structures | ||
- Copying | ||
|
||
## 1.3 - Binary Operations - [[Notebook]](./notebooks/pyqm-1.3-binary-operations.ipynb) - [[Video]](https://youtu.be/dMw8E-8cQpc) | ||
## 1.3 - Binary Operations - [Notebook](./notebooks/pyqm-1.3-binary-operations.ipynb) - [Video](https://youtu.be/dMw8E-8cQpc) | ||
|
||
- Overview Of Binary | ||
- Bitwise Operators | ||
- Shift Operators | ||
|
||
## 1.4 - Cheatsheet - [Notebook] | ||
|
||
Week1_Supplementary_Material/PyQM_1.4_Cheatsheet.ipynb | ||
|
||
## 1.5 - Tutorial [Tutorial 1](Week1_Exercises/PyQM_Tut.1_sol.ipynb) | ||
1. Matrix Multiplication | ||
2. Matrix Addition/Subtraction | ||
3. Scalar Multiplication Of Matrix | ||
4. Matrix Inverse & Determinant | ||
|
||
## 1.6 Exercise [Exercises 1](Week1_Exercises/PyQM_Ex.1_sol.ipynb) | ||
1. Python as a Calculator | ||
2. Energy Levels of Hydrogen | ||
3. Quantum Qubit Gates & Nested Lists | ||
4. Periodic Function |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.