-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fixed buggy yielding of Sequence/QParallel blocks * Add a test of the sequence of op buffers. * Reworked recursive iteration through blocks to be more elegant * Marked test using state-vec sim as optional dependency * Added Clifford Bell qparallel test and silence tz warning * Bumping version to 0.5.0.dev5 and updating requirements
- Loading branch information
Showing
12 changed files
with
360 additions
and
38 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
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
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
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
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
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
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
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,11 @@ | ||
# Copyright 2024 The PECOS developers | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with | ||
# the License.You may obtain a copy of the License at | ||
# | ||
# https://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an | ||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the | ||
# specific language governing permissions and limitations under the License. | ||
"""End-to-end tests""" |
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 @@ | ||
{ | ||
"format": "PHIR/JSON", | ||
"version": "0.1.0", | ||
"metadata": {"source": "pytket-phir v0.2.0", "strict_parallelism": "true"}, | ||
"ops": [ | ||
{"data": "qvar_define", "data_type": "qubits", "variable": "q", "size": 2}, | ||
{"data": "cvar_define", "data_type": "u32", "variable": "m", "size": 2}, | ||
{"qop": "RZ", "angles": [[1.0], "pi"], "args": [["q", 0], ["q", 1]]}, | ||
{"block": "qparallel", "ops": [ | ||
{"qop": "R1XY", "angles": [[0.5, 0.5], "pi"], "args": [["q", 0]]}, | ||
{"qop": "R1XY", "angles": [[1.5, 0.5], "pi"], "args": [["q", 1]]} | ||
]}, | ||
{"qop": "RZ", "angles": [[1.0], "pi"], "args": [["q", 0]]}, | ||
{"qop": "RZZ", "angles": [[0.5], "pi"], "args": [[["q", 0], ["q", 1]]]}, | ||
{"block": "qparallel", "ops": [ | ||
{"qop": "RZ", "angles": [[1.5], "pi"], "args": [["q", 0]]}, | ||
{"qop": "RZ", "angles": [[0.5], "pi"], "args": [["q", 1]]} | ||
]}, | ||
{"qop": "R1XY", "angles": [[1.5, 0.5], "pi"], "args": [["q", 1]]}, | ||
{"qop": "Measure", "args": [["q", 0], ["q", 1]], "returns": [["m", 0], ["m", 1]]} | ||
] | ||
} |
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 @@ | ||
{ | ||
"format": "PHIR/JSON", | ||
"version": "0.1.0", | ||
"metadata": {"source": "pytket-phir v0.2.0", "strict_parallelism": "true"}, | ||
"ops": [ | ||
{"data": "qvar_define", "data_type": "qubits", "variable": "q", "size": 2}, | ||
{"data": "cvar_define", "data_type": "u32", "variable": "m", "size": 2}, | ||
{"qop": "Z", "args": [["q", 0], ["q", 1]]}, | ||
{"block": "qparallel", "ops": [ | ||
{"qop": "SY", "args": [["q", 0]]}, | ||
{"qop": "SYdg", "args": [["q", 1]]} | ||
]}, | ||
{"qop": "Z", "args": [["q", 0]]}, | ||
{"qop": "SZZ", "args": [[["q", 0], ["q", 1]]]}, | ||
{"block": "qparallel", "ops": [ | ||
{"qop": "SZdg", "args": [["q", 0]]}, | ||
{"qop": "SZ", "args": [["q", 1]]} | ||
]}, | ||
{"qop": "SYdg", "args": [["q", 1]]}, | ||
{"qop": "Measure", "args": [["q", 0], ["q", 1]], "returns": [["m", 0], ["m", 1]]} | ||
] | ||
} |
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
Oops, something went wrong.