Skip to content
This repository has been archived by the owner on Nov 29, 2023. It is now read-only.

Commit

Permalink
Merge pull request #28 from CQCL/replace-underscored-circuit-library-…
Browse files Browse the repository at this point in the history
…function

Replace underscored circuit library functions
  • Loading branch information
yao-cqc committed Nov 9, 2023
2 parents f1047a4 + 2185f7a commit 46e17a4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pytket/extensions/ionq/backends/ionq.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
RenameQubitsPass,
SimplifyInitial,
)
from pytket._tket.circuit._library import _TK1_to_RzRx # type: ignore
from pytket.circuit_library import TK1_to_RzRx # type: ignore
from pytket.predicates import ( # type: ignore
GateSetPredicate,
MaxNQubitsPredicate,
Expand Down Expand Up @@ -215,7 +215,7 @@ def default_compilation_pass(self, optimisation_level: int = 1) -> BasePass:
self.rebase_pass(),
SquashCustom(
ionq_singleqs,
_TK1_to_RzRx,
TK1_to_RzRx,
),
SimplifyInitial(allow_classical=False, create_all_qubits=True),
]
Expand Down
4 changes: 2 additions & 2 deletions pytket/extensions/ionq/backends/ionq_convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from typing import Dict, Tuple, Any, List
from numpy import pi
from pytket.passes import RebaseCustom # type: ignore
from pytket._tket.circuit._library import _TK1_to_RzRx # type: ignore
from pytket.circuit_library import TK1_to_RzRx # type: ignore
from pytket.circuit import Circuit, OpType, Command # type: ignore


Expand Down Expand Up @@ -51,7 +51,7 @@
ionq_rebase_pass = RebaseCustom(
ionq_multiqs | ionq_singleqs,
Circuit(), # cx_replacement (irrelevant)
_TK1_to_RzRx,
TK1_to_RzRx,
) # tk1_replacement

ionq_gate_dict = {
Expand Down

0 comments on commit 46e17a4

Please sign in to comment.