Skip to content

Commit

Permalink
refactor: correct lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
12rambau committed Nov 13, 2023
1 parent 189967e commit f8634fa
Show file tree
Hide file tree
Showing 8 changed files with 29 additions and 30 deletions.
14 changes: 7 additions & 7 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "Python 3",
"image": "mcr.microsoft.com/devcontainers/python:1-3.11-bullseye",
"features": {
"ghcr.io/devcontainers-contrib/features/nox:2": {},
"ghcr.io/devcontainers-contrib/features/pre-commit:2": {}
},
"postCreateCommand": "pre-commit install"
"name": "Python 3",
"image": "mcr.microsoft.com/devcontainers/python:1-3.11-bullseye",
"features": {
"ghcr.io/devcontainers-contrib/features/nox:2": {},
"ghcr.io/devcontainers-contrib/features/pre-commit:2": {}
},
"postCreateCommand": "pre-commit install"
}
3 changes: 1 addition & 2 deletions .github/workflows/pypackage_check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: template update check
on:
workflow_dispatch:
schedule:
- cron: '0 0 1 * *' # Run at 00:00 on the first day of each month
- cron: "0 0 1 * *" # Run at 00:00 on the first day of each month

jobs:
check_version:
Expand Down Expand Up @@ -50,4 +50,3 @@ jobs:
> You may need to reinstall ``copier`` and ``jinja2-time`` if they are not available in your environment.
After solving the merging issues you can push back the changes to your main branch.
18 changes: 9 additions & 9 deletions docs/_static/custom.css
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
/*******************************************************************************
* make the footer inlined
*/
.footer-item {
display: inline-block;
}
.footer-item:not(:last-child) {
border-right: 1px solid var(--pst-color-text-base);
margin-right: 0.5em;
padding-right: 0.5em;
}
.footer-item {
display: inline-block;
}
.footer-item:not(:last-child) {
border-right: 1px solid var(--pst-color-text-base);
margin-right: 0.5em;
padding-right: 0.5em;
}

/*******************************************************************************
* add the dollar sign in console block
Expand All @@ -17,4 +17,4 @@ div.highlight-console pre span.go::before {
content: "$";
margin-right: 10px;
margin-left: 5px;
}
}
6 changes: 3 additions & 3 deletions docs/authors.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Authors
=======
Author
======

.. include :: ../../AUTHORS.rst
.. include :: ../AUTHORS.rst
2 changes: 1 addition & 1 deletion docs/contribute.rst
Original file line number Diff line number Diff line change
@@ -1 +1 @@
.. include :: ../../CONTRIBUTING.rst
.. include :: ../CONTRIBUTING.rst
4 changes: 2 additions & 2 deletions docs/examples/demo.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"import numpy as np\n",
"import matplotlib.pyplot as plt\n",
"import pennylane as qml\n",
"from scipy.stats import unitary_group "
"from scipy.stats import unitary_group"
]
},
{
Expand Down Expand Up @@ -102,7 +102,7 @@
"metadata": {},
"source": [
"The top sphere shows the effect of the hadamard gate : an even superposition between the two basis state without phase offset. \n",
"Then on the bottom sphere we wee the effect of the parametrised Control Y rotattion :\n",
"Then on the bottom sphere we see the effect of the parametrised Control Y rotattion :\n",
"The left sphere represent the subspace where the first qubit is 0. it is of course untouched by the CY gate.\n",
"The right sphere represent the subspace where the first qubit is 1. The state is gradually rotated about the Y axis from 0 (blue) to 1 (red).\n",
"The bell state corresponds to the red point."
Expand Down
2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

.. include :: ../../README.rst
.. include :: ../README.rst
.. toctree::
:hidden:
Expand Down
10 changes: 5 additions & 5 deletions docs/install.rst
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
Installation
============

Stable release
Stable release
--------------

Use pip to install from `Pypi <https://pypi.org/project/qutree/>`_:

.. code-block:: console
pip install qutree
From source
Expand All @@ -17,8 +17,8 @@ The source of ``qutree`` can be installed from the `GitHub repo <https://github.

.. code-block:: console
python -m pip install git+git://github.com/alice4space/qutree.git#egg=qutree
python -m pip install git+git://github.com/alice4space/qutree.git#egg=qutree
local development
-----------------

Expand All @@ -30,4 +30,4 @@ The source of ``qutree`` can be installed from the `GitHub repo <https://github.
cd qutree/
pip install -e .[dev]
Go to :doc:`contribute` to know more.
Go to :doc:`contribute` to know more.

0 comments on commit f8634fa

Please sign in to comment.