Skip to content

Commit

Permalink
feat!: Name change (#116)
Browse files Browse the repository at this point in the history
* Name change

* Remove unused files

* Remove reference to readme

* Remove parent dir

* Add readme

* Minimally populate readme
  • Loading branch information
daniel-mills-cqc authored Oct 1, 2024
1 parent 8268adf commit 5e0e289
Show file tree
Hide file tree
Showing 31 changed files with 31 additions and 309 deletions.
2 changes: 1 addition & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: 2
updates:
- package-ecosystem: pip
directory: "pytket-mbqc-py"
directory: "/"
schedule:
interval: "weekly"
target-branch: "main"
Expand Down
15 changes: 7 additions & 8 deletions .github/workflows/run_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ jobs:
cache: 'pip'

- name: Install pytket-mbqc
run: pip install pytket-mbqc-py/
run: pip install .

- name: Type Check
run: mypy pytket-mbqc-py/pytket_mbqc_py/ --warn-unused-ignores
run: mypy ocvqc_py/ --warn-unused-ignores

- name: Lint Check
run: ruff check
Expand All @@ -43,10 +43,10 @@ jobs:
run: ruff format --check

- name: Run Tests
run: pytest --cov-fail-under=100 --cov-report term-missing:skip-covered --cov=pytket-mbqc-py/pytket_mbqc_py/ pytket-mbqc-py/tests/ --durations=10
run: pytest --cov-fail-under=100 --cov-report term-missing:skip-covered --cov=ocvqc_py/ tests/ --durations=10

- name: Examples check
run: pytest --nbmake pytket-mbqc-py/example_notebooks/*.ipynb
run: pytest --nbmake example_notebooks/*.ipynb


Build-Documentation:
Expand All @@ -64,18 +64,17 @@ jobs:
cache: 'pip'

- name: Install pytket-benchmarking
run: pip install pytket-mbqc-py/
run: pip install .

- name: Check Documentation coverage
run: docstr-coverage pytket-mbqc-py/pytket_mbqc_py
run: docstr-coverage ocvqc_py

- name: Build documentation
run: |
cd pytket-mbqc-py
make html
- name: Save documentation
uses: actions/upload-artifact@v4
with:
name: docs_html
path: pytket-mbqc-py/build/html
path: build/html
File renamed without changes.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,9 @@
# pytket-mbqc
# ocvqc-py

ocvqc-py (On Chip Verified Quantum Computation - Python) is a python library for creating verifiable MBQC patterns.
To install ocvqc-py please run
```
pip install .
```
The library also include a poetry lock file.
For example usage please see the `example_notebooks` directory.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"source": [
"from pytket.circuit.display import render_circuit_jupyter\n",
"\n",
"from pytket_mbqc_py import GraphCircuit\n",
"from ocvqc_py import GraphCircuit\n",
"\n",
"graph_circuit = GraphCircuit(\n",
" n_physical_qubits=2,\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"source": [
"import pytest\n",
"\n",
"from pytket_mbqc_py import GraphCircuit\n",
"from ocvqc_py import GraphCircuit\n",
"\n",
"graph_circuit = GraphCircuit(\n",
" n_physical_qubits=2,\n",
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from pytket.unit_id import Bit, BitRegister, UnitID
from pytket.utils.outcomearray import OutcomeArray

from pytket_mbqc_py.qubit_manager import QubitManager
from ocvqc_py.qubit_manager import QubitManager


class GraphCircuit(QubitManager):
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

from numpy.random import Generator, default_rng

from pytket_mbqc_py import GraphCircuit
from ocvqc_py import GraphCircuit


class RandomIdentityGraph(GraphCircuit):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
https://journals.aps.org/pra/abstract/10.1103/PhysRevA.104.062422.
"""

from pytket_mbqc_py import GraphCircuit
from ocvqc_py import GraphCircuit


class TwoQubitGrover(GraphCircuit):
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion pytket-mbqc-py/pyproject.toml → pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tool.poetry]
name = "pytket-mbqc-py"
name = "ocvqc-py"
version = "0.1.0"
description = ""
authors = ["Your Name <[email protected]>"]
Expand Down
Empty file removed pytket-mbqc-py/README.md
Empty file.
205 changes: 0 additions & 205 deletions pytket-mbqc-py/example.ipynb

This file was deleted.

16 changes: 0 additions & 16 deletions pytket-mbqc-rus/Cargo.lock

This file was deleted.

15 changes: 0 additions & 15 deletions pytket-mbqc-rus/Cargo.toml

This file was deleted.

Loading

0 comments on commit 5e0e289

Please sign in to comment.