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

Initialize TketAutoPass with a BackendV2 #388

Merged
merged 2 commits into from
Sep 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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: 1 addition & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Unreleased
* Fix conversion of symbols into qiskit.
* Require qiskit >= 1.2.0.
* Add conversion of controlled unitary gates from qiskit to tket.
* Initialize `TketAutoPass` with a `BackendV2`.

0.55.0 (July 2024)
------------------
Expand Down
4 changes: 2 additions & 2 deletions pytket/extensions/qiskit/tket_pass.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

from typing import Optional
from qiskit.dagcircuit import DAGCircuit # type: ignore
from qiskit.providers import BackendV1 # type: ignore
from qiskit.providers import BackendV2 # type: ignore
from qiskit.transpiler.basepasses import TransformationPass, BasePass as qBasePass # type: ignore
from qiskit.converters import circuit_to_dag, dag_to_circuit # type: ignore
from qiskit_aer.backends import AerSimulator # type: ignore
Expand Down Expand Up @@ -76,7 +76,7 @@ class TketAutoPass(TketPass):

def __init__(
self,
backend: BackendV1,
backend: BackendV2,
optimisation_level: int = 2,
token: Optional[str] = None,
):
Expand Down