Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release/1.27.0 #419

Merged
merged 73 commits into from
Apr 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
73 commits
Select commit Hold shift + click to select a range
4aba072
add initial draft of hardware advanced nativetq options
mlk621 Dec 21, 2023
953f3f0
add details using TK2 in tket as SU4 gate
irfankhan10 Jan 17, 2024
549be3a
add details on qasm conversion
irfankhan10 Jan 17, 2024
cfa9cab
Update Quantinuum_advanced_compilation.ipynb
mlk621-qtm Jan 19, 2024
e5acb9b
Add QV N=4 circuit
mlk621-qtm Jan 30, 2024
167f9e9
Edit example
mlk621-qtm Feb 6, 2024
88eb83a
use compilation config and TK2 gates
irfankhan10 Feb 11, 2024
a1990ea
may remove: added TK2 to enable running of circuits
irfankhan10 Feb 11, 2024
cce12fa
Merge branch 'develop' into native-gate-options-example
mlk621-qtm Feb 15, 2024
80f90fd
Updated QV SU(4) example
mlk621-qtm Feb 15, 2024
98ff905
add QVT circuit definition and remove hard-coded qasm code
irfankhan10 Feb 26, 2024
2cd27c5
final changes
irfankhan10 Feb 26, 2024
a269fcf
remove hard-coded OpType.TK2
irfankhan10 Feb 29, 2024
073f818
SU4 article
irfankhan10 Feb 29, 2024
0c30e46
add initial draft of hardware advanced nativetq options
mlk621 Dec 21, 2023
1d213e2
add details using TK2 in tket as SU4 gate
irfankhan10 Jan 17, 2024
4656596
add details on qasm conversion
irfankhan10 Jan 17, 2024
e91b083
Update Quantinuum_advanced_compilation.ipynb
mlk621-qtm Jan 19, 2024
71c7491
Add QV N=4 circuit
mlk621-qtm Jan 30, 2024
ef36cef
Edit example
mlk621-qtm Feb 6, 2024
fe56135
use compilation config and TK2 gates
irfankhan10 Feb 11, 2024
b0bc742
may remove: added TK2 to enable running of circuits
irfankhan10 Feb 11, 2024
323e0ad
Updated QV SU(4) example
mlk621-qtm Feb 15, 2024
074c876
add QVT circuit definition and remove hard-coded qasm code
irfankhan10 Feb 26, 2024
ee89e81
final changes
irfankhan10 Feb 26, 2024
3f419f2
remove hard-coded OpType.TK2
irfankhan10 Feb 29, 2024
99a92c0
SU4 article
irfankhan10 Feb 29, 2024
3883a1d
manually merge changes with Megan
irfankhan10 Mar 8, 2024
6980575
update toc
irfankhan10 Mar 8, 2024
eed4a29
notebook modified to include output
irfankhan10 Mar 8, 2024
be017d4
Merge branch 'native-gate-options-example' of https://github.com/CQCL…
mlk621-qtm Mar 8, 2024
e739446
Update Quantinuum_advanced_compilation
mlk621-qtm Mar 8, 2024
64dae68
update TOC
mlk621-qtm Mar 8, 2024
65cdd7f
charlie baldwin feedback: modify comment in QV section
irfankhan10 Mar 12, 2024
2200647
add relation between arbitrary phase and fixed phase two-qubit gates
irfankhan10 Mar 12, 2024
d3d26c2
fixed toc
irfankhan10 Mar 12, 2024
2b6b2d6
add details
irfankhan10 Mar 12, 2024
3892792
fix toc
irfankhan10 Mar 13, 2024
c6bcb11
mend
irfankhan10 Mar 13, 2024
63994e7
Merge remote-tracking branch 'origin/develop' into native-gate-option…
irfankhan10 Mar 26, 2024
9f43e41
Remove `no_opt` and `allow_2q_gate_rebase` options (#394)
cqc-alec Mar 26, 2024
6506efc
streamline document after l4 option update
irfankhan10 Mar 26, 2024
3c0f53a
clean up ci tests (#397)
cqc-melf Mar 27, 2024
cf4ed7a
Merge pull request #401 from CQCL/main
cqc-alec Mar 27, 2024
cc2ba87
Streamline SU4 article and remove Rxxyyzz from the article
irfankhan10 Mar 27, 2024
b1ffbea
Fix test so that it works when there are no calendar data. (#402)
cqc-alec Mar 27, 2024
c0dfb11
spell-check compilation ka
irfankhan10 Mar 27, 2024
129aab9
Feature/add calendar visualisation (#389)
irfankhan10 Mar 28, 2024
782ea89
simplify equation
irfankhan10 Mar 28, 2024
3f8fe8a
Update to pytket-pecos 0.1.22. (#404)
cqc-alec Mar 28, 2024
7f45bc5
Re-enable test. (#405)
cqc-alec Apr 2, 2024
df09426
final changes and typos
irfankhan10 Apr 2, 2024
08d18e2
Merge remote-tracking branch 'origin/develop' into native-gate-option…
irfankhan10 Apr 2, 2024
d861f1b
lint
irfankhan10 Apr 2, 2024
03a3f8c
remove conflicting line from ka
irfankhan10 Apr 2, 2024
9e5f839
Update to pytket-pecos 0.1.23 (#408)
cqc-alec Apr 3, 2024
e15504c
change backend target from H1-2E to H1-1E
irfankhan10 Apr 4, 2024
23b1dc7
fix save and reload example
irfankhan10 Apr 4, 2024
973a4a8
Merge pull request #409 from CQCL/hotfix/fix_issues_in_examples
irfankhan10 Apr 5, 2024
fababe6
Merge remote-tracking branch 'origin/develop' into native-gate-option…
irfankhan10 Apr 5, 2024
f0b9874
extra step to convert from U(4) to SU(4)
irfankhan10 Apr 8, 2024
09677f3
change back to SU(4)
irfankhan10 Apr 9, 2024
92d6867
Update pytket-pecos to 0.1.24 (#413)
cqc-alec Apr 11, 2024
b9f4671
Update backend_test.py (#415)
cqc-melf Apr 11, 2024
136cfa0
Streamline workflow description for SU(4)
mlk621-qtm Apr 11, 2024
4dd18e8
Format notebook
yao-cqc Apr 12, 2024
0907dd3
Merge branch 'develop' into native-gate-options-example
yao-cqc Apr 12, 2024
41c360b
Merge pull request #406 from CQCL/native-gate-options-example
mlk621-qtm Apr 12, 2024
84b10f5
update copyright notice (#418)
cqc-melf Apr 17, 2024
f39f59e
Update/docs (#410)
cqc-melf Apr 17, 2024
2c221be
update changelog
cqc-melf Apr 17, 2024
1fa1fd7
update version
cqc-melf Apr 17, 2024
cb78282
update pytket version
cqc-melf Apr 17, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/workflows/build-test
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ python -m pip install --pre -r test-requirements.txt
python -m pip install --upgrade --pre pytket~=1.0

# install the latest compatible pytket-qir version
python -m pip install --upgrade --pre pytket-qir~=0.4.0

pytest --doctest-modules unit/

Expand Down
35 changes: 35 additions & 0 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,32 @@ jobs:
working-directory: ./tests
run: pytest integration/

calendar_visualisation_tests:
name: Run calendar visualisation test
if: github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch' || github.event_name == 'push' || github.event_name == 'schedule'
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install module
run: python -m pip install -v -e .
- name: Install test requirements
run: |
python -m pip install --pre -r tests/test-requirements.txt
pip install pytest-mpl
- name: Run tests with mpl test
env:
PYTKET_RUN_MPL_TESTS: 1
PYTKET_REMOTE_QUANTINUUM_USERNAME_QA: ${{ secrets.PYTKET_REMOTE_QUANTINUUM_USERNAME }}
PYTKET_REMOTE_QUANTINUUM_PASSWORD_QA: ${{ secrets.PYTKET_REMOTE_QUANTINUUM_USERNAME }}
working-directory: ./tests
run: |
pytest --mpl-generate-path=integration/baseline
pytest integration/ --mpl

prod_checks:
name: Run backend tests with QA and prod endpoint
if: github.event_name == 'workflow_dispatch' || github.event_name == 'schedule' || contains(github.ref_name, 'runci/prod/')
Expand All @@ -219,6 +245,15 @@ jobs:
PYTKET_REMOTE_QUANTINUUM_EMULATORS_ONLY: 1
working-directory: ./tests
run: pytest integration/
- name: Run tests with mpl test
env:
PYTKET_RUN_MPL_TESTS: 1
PYTKET_REMOTE_QUANTINUUM_USERNAME: ${{ secrets.PYTKET_REMOTE_QUANTINUUM_USERNAME }}
PYTKET_REMOTE_QUANTINUUM_PASSWORD: ${{ secrets.PYTKET_REMOTE_QUANTINUUM_PASSWORD }}
working-directory: ./tests
run: |
pip install pytest-mpl
pytest integration/ --mpl

publish_to_pypi:
name: Publish to pypi
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ Please file bugs and feature requests on the Github

There is also a Slack channel for discussion and support. Click [here](https://tketusers.slack.com/join/shared_invite/zt-18qmsamj9-UqQFVdkRzxnXCcKtcarLRA#/shared-invite/email) to join.

## Hardware Support

In case of questions about the hardware you can contact QCsupport@quantinuum.com.

## Development

To install this extension in editable mode, simply change to this directory, and run:
Expand Down
2 changes: 1 addition & 1 deletion _metadata.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
__extension_version__ = "0.32.0"
__extension_version__ = "0.33.0"
__extension_name__ = "pytket-quantinuum"
12 changes: 9 additions & 3 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
@@ -1,21 +1,27 @@
Changelog
~~~~~~~~~

0.33.0 (April 2024)
-------------------

* Updated pytket version requirement to 1.27.
* Update pytket_pecos version requirement to 0.1.24.

0.32.0 (March 2024)
-------------------

* Remove ``no_opt`` and ``allow_2q_gate_rebase`` options to
``process_circuits()`` and ``submit_program()``, and assume that the submitted
circuit is exactly what is desired to be run.
* Update pytket_pecos version requirement to 0.1.21.
* Update pytket_pecos version requirement to 0.1.22.

0.31.0 (March 2024)
-------------------

* Updated pytket version requirement to 1.26.
* Add method to enable visibility of
Quantinuum H-Series operational calendar.
* Update pytket_pecos version requirement to 0.1.19.
* Add methods to enable visibility of Quantinuum H-Series
operations calendar with and without matplotlib.
* Support TK2 as native gate.
* Update pytket version requirement to 1.26.
* Update pytket-qir version requirement to 0.9.
Expand Down
11 changes: 11 additions & 0 deletions docs/intro.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,20 @@ and Windows. To install, run:
The user will be prompted for their login credentials when making API calls such as calling the ``process_circuits`` method or querying ``backend_info``.


``pytket-quantinuum`` provides calendar visualization capabilities. The ``calendar`` extra-install-argument must be specified to install matplotlib and pandas.

::

pip install pytket-quantinuum[calendar]

.. note:: `view_calendar` requires the extra-install-argument above. The method `get_calendar` can be used with the base installation of pytket-quantinuum.


**Web Interface:**
https://um.qapi.quantinuum.com/

In case of questions about the hardware you can get in contact with the team sending an email to QCsupport@quantinuum.com.

Available Backends
==================
The pytket-quantinuum extension allows the user to access the following quantum devices, emulators and syntax checkers. These backends can be initialised by passing the device name as a string to the ``QuantinuumBackend`` class. The available devices are:
Expand Down
6 changes: 3 additions & 3 deletions examples/Quantinuum_chemistry_chemically_aware_ucc.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1214,7 +1214,7 @@
"\n",
"This procedure requires the Chemically-Aware UCC state-preparation circuit, the 6-qubit electronic structure Hamiltonian for $\\textrm{CH}_4$ and the parameter set characterising the ground-state of $\\textrm{CH}_4$.\n",
"\n",
"The H-Series emulator (`H1-2E`) is used for this problem."
"The H-Series emulator (`H1-1E`) is used for this problem."
]
},
{
Expand All @@ -1225,7 +1225,7 @@
"source": [
"from pytket.extensions.quantinuum import QuantinuumBackend\n",
"\n",
"backend = QuantinuumBackend(device_name=\"H1-2E\")\n",
"backend = QuantinuumBackend(device_name=\"H1-1E\")\n",
"backend.login()"
]
},
Expand Down Expand Up @@ -1429,7 +1429,7 @@
"outputs": [],
"source": [
"quantinuum_backend_noiseless = QuantinuumBackend(\n",
" device_name=\"H1-2E\", options={\"error-model\": False}\n",
" device_name=\"H1-1E\", options={\"error-model\": False}\n",
")\n",
"handles_noiseless, ms = hamiltonian_averaging_submission(\n",
" circ_arbzz,\n",
Expand Down
Loading
Loading