Skip to content

Commit

Permalink
Merge branch 'main' into LightSABRE-CustomPass
Browse files Browse the repository at this point in the history
  • Loading branch information
sjdilkes committed Nov 7, 2024
2 parents 10f1142 + b332fbf commit 59bd5dd
Show file tree
Hide file tree
Showing 32 changed files with 1,179 additions and 999 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
name: Qiskit - Build and test module
strategy:
matrix:
os: ['ubuntu-24.04', 'macos-14', 'windows-2022']
os: ['ubuntu-latest', 'macos-14', 'windows-latest']
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
Expand All @@ -48,7 +48,7 @@ jobs:
with:
python-version: '3.11'
- name: Build and test including remote checks (3.11) mypy
if: (matrix.os == 'ubuntu-24.04') && (github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository) || github.event_name == 'release' || github.event_name == 'schedule' )
if: (matrix.os == 'ubuntu-latest') && (github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository) || github.event_name == 'release' || github.event_name == 'schedule' )
shell: bash
run: |
./.github/workflows/build-test mypy
Expand Down Expand Up @@ -77,12 +77,12 @@ jobs:
- name: Install poetry
run: pip install poetry
- name: Install docs dependencies
if: (matrix.os == 'ubuntu-24.04') && (github.event_name == 'pull_request' || github.event_name == 'schedule' )
if: (matrix.os == 'ubuntu-latest') && (github.event_name == 'pull_request' || github.event_name == 'schedule' )
run: |
cd docs && bash ./install.sh
for w in `find wheelhouse/ -type f -name "*.whl"` ; do poetry install $w ; done
for w in `find wheelhouse/ -type f -name "*.whl"` ; do poetry run pip install $w ; done
- name: Build docs
if: (matrix.os == 'ubuntu-24.04') && (github.event_name == 'pull_request' || github.event_name == 'schedule' )
if: (matrix.os == 'ubuntu-latest') && (github.event_name == 'pull_request' || github.event_name == 'schedule' )
timeout-minutes: 20
run: |
cd docs && poetry run bash ./build-docs.sh
Expand All @@ -92,7 +92,7 @@ jobs:
name: Publish to pypi
if: github.event_name == 'release'
needs: qiskit-checks
runs-on: ubuntu-24.04
runs-on: ubuntu-latest
steps:
- name: Download all wheels
# downloading all three files into the wheelhouse
Expand All @@ -117,7 +117,7 @@ jobs:
name: Build docs
if: github.event_name == 'release'
needs: publish_to_pypi
runs-on: ubuntu-24.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
jobs:
docs:
name: build docs
runs-on: ubuntu-24.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
jobs:
lint:

runs-on: ubuntu-24.04
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
Expand All @@ -19,8 +19,12 @@ jobs:
- name: Update pip
run: pip install --upgrade pip
- name: Install black and pylint
run: pip install black pylint
run: pip install black pylint ruff
- name: Check files are formatted with black
run: black --check .
run: |
black --check .
- name: Run ruff
run: |
ruff check .
- name: Run pylint
run: pylint */
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,5 @@ pytket/extensions/qiskit/_metadata.py
*.ipynb
docs/pyproject.toml
docs/poetry.lock
.jupyter_cache/
jupyter_execute/
1 change: 0 additions & 1 deletion .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ enable=
unused-variable,
unused-wildcard-import,
wildcard-import,
wrong-import-order,
wrong-import-position,
yield-outside-function

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
[![Slack](https://img.shields.io/badge/Slack-4A154B?style=for-the-badge&logo=slack&logoColor=white)](https://tketusers.slack.com/join/shared_invite/zt-18qmsamj9-UqQFVdkRzxnXCcKtcarLRA#)
[![Stack Exchange](https://img.shields.io/badge/StackExchange-%23ffffff.svg?style=for-the-badge&logo=StackExchange)](https://quantumcomputing.stackexchange.com/tags/pytket)

[Pytket](https://tket.quantinuum.com/api-docs/index.html) is a python module for interfacing
[Pytket](https://docs.quantinuum.com/tket/api-docs/index.html) is a python module for interfacing
with tket, a quantum computing toolkit and optimising compiler developed by Quantinuum.

`pytket-qiskit` is an extension to `pytket` that allows `pytket` circuits to be
run on IBM backends and simulators, as well as conversion to and from Qiskit
representations.

Some useful links:
- [API Documentation](https://tket.quantinuum.com/extensions/pytket-qiskit/)
- [API Documentation](https://docs.quantinuum.com/tket/extensions/pytket-qiskit/)

## Getting started

Expand Down
27 changes: 25 additions & 2 deletions docs/api.rst → docs/api.md
Original file line number Diff line number Diff line change
@@ -1,55 +1,78 @@
API documentation
~~~~~~~~~~~~~~~~~
# API documentation

```{eval-rst}
.. autoclass:: pytket.extensions.qiskit.IBMQBackend
:special-members: __init__
:show-inheritance:
:members:
```

```{eval-rst}
.. autoclass:: pytket.extensions.qiskit.IBMQEmulatorBackend
:special-members: __init__
:show-inheritance:
:members:
```

```{eval-rst}
.. autoclass:: pytket.extensions.qiskit.AerBackend
:special-members: __init__
:inherited-members:
:members:
```

```{eval-rst}
.. autoclass:: pytket.extensions.qiskit.AerStateBackend
:special-members: __init__
:inherited-members:
:members:
```

```{eval-rst}
.. autoclass:: pytket.extensions.qiskit.AerUnitaryBackend
:special-members: __init__
:inherited-members:
:members:
```

```{eval-rst}
.. autoclass:: pytket.extensions.qiskit.AerDensityMatrixBackend
:special-members: __init__
:inherited-members:
:members:
```

```{eval-rst}
.. automodule:: pytket.extensions.qiskit
:members: qiskit_to_tk, tk_to_qiskit, process_characterisation
```

```{eval-rst}
.. automodule:: pytket.extensions.qiskit.tket_backend
:show-inheritance:
:members:
:special-members: __init__
```

```{eval-rst}
.. automodule:: pytket.extensions.qiskit.backends.crosstalk_model
:members: CrosstalkParams
```

```{eval-rst}
.. automodule:: pytket.extensions.qiskit.tket_pass
:special-members: __init__
:members:
```

```{eval-rst}
.. automodule:: pytket.extensions.qiskit.tket_job
:special-members: __init__
:members:
```

```{eval-rst}
.. automodule:: pytket.extensions.qiskit.backends.config
:members:
```
Loading

0 comments on commit 59bd5dd

Please sign in to comment.