Skip to content
This repository has been archived by the owner on Apr 10, 2024. It is now read-only.

Commit

Permalink
Merge pull request #335 from CQCL/release/1.0.0
Browse files Browse the repository at this point in the history
Release/1.0.0
  • Loading branch information
cqc-alec authored Mar 14, 2022
2 parents 60f5351 + ed559cf commit ada38d4
Show file tree
Hide file tree
Showing 100 changed files with 1,447 additions and 1,994 deletions.
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
/modules/pytket-aqt/ @cqc-melf
/modules/pytket-braket/ @cqc-alec
/modules/pytket-cirq/ @sjdilkes
/modules/pytket-honeywell/ @ss2165
/modules/pytket-ionq/ @Roland-djee
/modules/pytket-iqm/ @cqc-alec
/modules/pytket-projectq/ @lmondada
/modules/pytket-pyquil/ @sjdilkes @lmondada
/modules/pytket-pyzx/ @cqc-alec
/modules/pytket-qiskit/ @ss2165
/modules/pytket-qsharp/ @cqc-alec
/modules/pytket-quantinuum/ @ss2165
/modules/pytket-qulacs/ @Roland-djee
/modules/pytket-stim/ @cqc-alec
10 changes: 5 additions & 5 deletions .github/workflows/build-test
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ ARTIFACTSDIR=${GITHUB_WORKSPACE}/wheelhouse

rm -rf ${ARTIFACTSDIR} && mkdir ${ARTIFACTSDIR}

python -m pip install --upgrade pip wheel
python -m pip install --upgrade pip wheel build

function unsupported() {
case "$1" in
Expand Down Expand Up @@ -82,10 +82,10 @@ for MODULE in $MODULES_TO_TEST; do
if ! (unsupported ${MODULE}) ; then
echo "${MODULE}..."
cd ${MODULEDIR}/${MODULE}
python setup.py sdist
for sdist in dist/*.tar.gz ; do
python -m pip install $sdist
cp $sdist ${ARTIFACTSDIR}
python -m build
for w in dist/*.whl ; do
python -m pip install $w
cp $w ${ARTIFACTSDIR}
done
fi
done
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,19 +65,21 @@ jobs:
run: |
./.github/workflows/build-test nomypy
- name: Set up Python 3.9
if: github.event_name == 'pull_request'
if: github.event_name == 'pull_request' || github.event_name == 'release' || contains(github.ref, 'refs/heads/wheel')
uses: actions/setup-python@v2
with:
python-version: '3.9'
- name: Build and test (3.9)
if: github.event_name == 'pull_request'
if: github.event_name == 'pull_request' || github.event_name == 'release' || contains(github.ref, 'refs/heads/wheel')
run: |
./.github/workflows/build-test nomypy
- name: Set up Python 3.10
if: github.event_name == 'push' || github.event_name == 'pull_request'
uses: actions/setup-python@v2
with:
python-version: '3.10'
- name: Build and test (3.10)
if: github.event_name == 'push' || github.event_name == 'pull_request'
run: |
./.github/workflows/build-test nomypy
- uses: actions/upload-artifact@v2
Expand Down Expand Up @@ -229,7 +231,7 @@ jobs:
- name: Put them all in the dist folder
run: |
mkdir dist
for w in `find wheelhouse/ -type f -name "*.tar.gz"` ; do cp $w dist/ ; done
for w in `find wheelhouse/ -type f -name "*.whl"` ; do cp $w dist/ ; done
- name: Publish wheels
uses: pypa/gh-action-pypi-publish@release/v1
with:
Expand Down Expand Up @@ -257,7 +259,7 @@ jobs:
- name: Install pip, wheel
run: pip install -U pip wheel
- name: Install extensions
run: for w in `find wheelhouse/ -type f -name "*.tar.gz"` ; do pip install $w ; done
run: for w in `find wheelhouse/ -type f -name "*.whl"` ; do pip install $w ; done
- name: Install dotnet SDK
uses: actions/setup-dotnet@v1
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/hotfix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ jobs:
- name: Put them all in the dist folder
run: |
mkdir dist
for w in `find wheelhouse/ -type f -name "*.tar.gz"` ; do cp $w dist/ ; done
for w in `find wheelhouse/ -type f -name "*.whl"` ; do cp $w dist/ ; done
- name: Publish wheels
uses: pypa/gh-action-pypi-publish@release/v1
with:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ subdirectory of the `modules` directory:
* `pytket-aqt`
* `pytket-braket`
* `pytket-cirq`
* `pytket-honeywell`
* `pytket-ionq`
* `pytket-iqm`
* `pytket-projectq`
* `pytket-pyquil`
* `pytket-pyzx`
* `pytket-qiskit`
* `pytket-qsharp`
* `pytket-quantinumm`
* `pytket-qulacs`
* `pytket-stim`

Expand Down
2 changes: 1 addition & 1 deletion modules/pytket-aqt/_metadata.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
__extension_version__ = "0.17.0"
__extension_version__ = "0.18.0"
__extension_name__ = "pytket-aqt"
5 changes: 5 additions & 0 deletions modules/pytket-aqt/docs/changelog.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
Changelog
~~~~~~~~~

0.18.0 (March 2022)
-------------------

* Updated pytket version requirement to 1.0.

0.17.0 (February 2022)
----------------------

Expand Down
16 changes: 3 additions & 13 deletions modules/pytket-aqt/pytket/extensions/aqt/backends/aqt.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
DecomposeBoxes,
RenameQubitsPass,
SimplifyInitial,
auto_rebase_pass,
)
from pytket.predicates import ( # type: ignore
GateSetPredicate,
Expand Down Expand Up @@ -376,19 +377,8 @@ def _translate_aqt(circ: Circuit) -> Tuple[List[List], str]:
return (gates, json.dumps(measures))


def _aqt_rebase() -> BasePass:
# CX replacement
c_cx = Circuit(2)
c_cx.Ry(0.5, 0).Rx(0.5, 0)
c_cx.Rx(-0.5, 1)
c_cx.add_gate(OpType.XXPhase, 0.5, [0, 1])
c_cx.Ry(0.5, 0).Rx(-1, 0)
c_cx.add_phase(-0.25)

# TK1 replacement
c_tk1 = lambda a, b, c: Circuit(1).Rx(-0.5, 0).Ry(c, 0).Rx(b, 0).Ry(a, 0).Rx(0.5, 0)

return RebaseCustom({OpType.XXPhase}, c_cx, {OpType.Rx, OpType.Ry}, c_tk1)
def _aqt_rebase() -> RebaseCustom:
return auto_rebase_pass({OpType.XXPhase, OpType.Rx, OpType.Ry})


_xcirc = Circuit(1).Rx(1, 0)
Expand Down
2 changes: 1 addition & 1 deletion modules/pytket-aqt/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
license="Apache 2",
packages=find_namespace_packages(include=["pytket.*"]),
include_package_data=True,
install_requires=["pytket ~= 0.19.0", "requests ~= 2.22", "types-requests"],
install_requires=["pytket ~= 1.0", "requests ~= 2.22", "types-requests"],
classifiers=[
"Environment :: Console",
"Programming Language :: Python :: 3.8",
Expand Down
1 change: 1 addition & 0 deletions modules/pytket-aqt/tests/backend_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ def test_bell() -> None:
assert all(q[0] == q[1] for q in counts)


@pytest.mark.skipif(skip_remote_tests, reason=REASON)
def test_invalid_cred() -> None:
token = "invalid"
b = AQTBackend(device_name="sim", access_token=token, label="test 3")
Expand Down
2 changes: 1 addition & 1 deletion modules/pytket-braket/_metadata.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
__extension_version__ = "0.16.0"
__extension_version__ = "0.17.0"
__extension_name__ = "pytket-braket"
10 changes: 10 additions & 0 deletions modules/pytket-braket/docs/changelog.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
Changelog
~~~~~~~~~

0.17.0 (March 2022)
-------------------

* Add optional "region" argument for initializing BraketBackend.
* Update requirements for amazon-braket-sdk and amazon-braket-schemas.
* Add support for oqc provider.
* Correct readout errors reported for Rigetti devices.
* Add support for density-matrix simulators.
* Updated pytket version requirement to 1.0.

0.16.0 (February 2022)
----------------------

Expand Down
Loading

0 comments on commit ada38d4

Please sign in to comment.