generated from CQCL/pytemplate
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4e89fc5
commit e108592
Showing
2 changed files
with
22 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
from pytket.circuit import Circuit | ||
|
||
from .sharding.sharder import Sharder | ||
|
||
|
||
def pytket_to_phir( | ||
circuit: Circuit, | ||
) -> str: | ||
"""Converts a pytket circuit into its PHIR representation | ||
:param circuit: Circuit object to be converted | ||
""" | ||
|
||
# TODO: Process circuit according to desired machine architecture | ||
|
||
sharder = Sharder(circuit) | ||
shards = sharder.shard() # noqa: F841 | ||
|
||
# TODO: Pass shards[] into placement, routing, etc | ||
# TODO: Convert to PHIR JSON spec and return | ||
|
||
return "{ phir json, someday }" |
This file was deleted.
Oops, something went wrong.