Skip to content

Commit

Permalink
Merge pull request #448 from CQCL/release/0.34.0
Browse files Browse the repository at this point in the history
Release/0.34.0
  • Loading branch information
cqc-alec authored Jun 7, 2024
2 parents f7dfe2f + 6d02582 commit 84086ad
Show file tree
Hide file tree
Showing 31 changed files with 2,621 additions and 174 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/issue-to-project.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Add issues to project

on:
issues:
types:
- opened

jobs:
add-to-project:
name: Add issue to project
runs-on: ubuntu-latest
steps:
- uses: actions/add-to-project@v1.0.1
with:
project-url: https://github.com/orgs/CQCL-DEV/projects/19
github-token: ${{ secrets.ADD_TO_PROJECT_PAT }}
33 changes: 0 additions & 33 deletions .github/workflows/issue.yml

This file was deleted.

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.33.0"
__extension_version__ = "0.34.0"
__extension_name__ = "pytket-quantinuum"
9 changes: 9 additions & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
Changelog
~~~~~~~~~

0.34.0 (June 2024)
------------------

* Update pytket_pecos version requirement to 0.1.27.
* Update Leakage Detection to reuse circuit qubits.
* Update pytket version requirement to 1.28.
* Update pytket-qir version requirement to 0.11.
* Update offline machine specs to match real devices as at 5 June 2024.

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

Expand Down
20 changes: 19 additions & 1 deletion docs/intro.txt
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ Circuits must satisfy the following predicates in order to run on the ``Quantinu

* `NoSymbolsPredicate <https://tket.quantinuum.com/api-docs/predicates.html#pytket.predicates.NoSymbolsPredicate>`_: Parameterised gates must have numerical parameters when the circuit is executed.
* `GateSetPredicate <https://tket.quantinuum.com/api-docs/predicates.html#pytket.predicates.GateSetPredicate>`_: To view supported Ops run ``QuantinuumBackend.backend_info.gate_set``.
* `MaxNQubitsPredicate <https://tket.quantinuum.com/api-docs/predicates.html#pytket.predicates.MaxNQubitsPredicate>`_: ``H1-1``, ``H1-1E`` and ``H1-1SC`` all support a maximum of 20 qubits. The ``H2-1``, ``H2-1E`` and ``H2-1SC`` support a maximum of 32 qubits.
* `MaxNQubitsPredicate <https://tket.quantinuum.com/api-docs/predicates.html#pytket.predicates.MaxNQubitsPredicate>`_: ``H1-1``, ``H1-1E`` and ``H1-1SC`` all support a maximum of 20 qubits. ``H2-1``, ``H2-1E`` and ``H2-1SC`` all support a maximum of 56 qubits.

Job Statuses
============
Expand Down Expand Up @@ -183,6 +183,24 @@ For the Quantinuum ``Backend``, ``process_circuits`` returns a ``ResultHandle``

The ``logout()`` method clears stored JSON web tokens and the user will have to sign in again to access the Quantinuum API.

Persistent Authentication Token Storage
---------------------------------------

Following a successful login, the refresh token and the ID token, which are required for making further requests, will be saved.
This means you won't need to re-enter your credentials until these tokens expire. By default, these tokens are only stored in memory and will be removed once the Python session ends or if you manually log out.

For more persistent storage, consider using the ``QuantinuumConfigCredentialStorage``. This storage option saves your username and the authentication tokens to the ``pytket`` configuration file, ensuring they persist beyond the current session.
::

from pytket.extensions.quantinuum.backends.api_wrappers import QuantinuumAPI
from pytket.extensions.quantinuum.backends.credential_storage import (
QuantinuumConfigCredentialStorage,
)
backend = QuantinuumBackend(
device_name=machine,
api_handler=QuantinuumAPI(token_store=QuantinuumConfigCredentialStorage()),
)

Partial Results Retrieval
-------------------------

Expand Down
1 change: 0 additions & 1 deletion examples/Quantinuum_circuit_compilation.ipynb

This file was deleted.

Loading

0 comments on commit 84086ad

Please sign in to comment.