Skip to content

Commit a70a49e

Browse files
weinbe58jon-wurtz
andauthored
Adding cirq util tests on a suite random circuits + some refactors. (#328)
Splitting up the massive function into several smaller functions that can be called to process the data. --------- Co-authored-by: Jonathan Wurtz <[email protected]>
1 parent 5339e43 commit a70a49e

File tree

4 files changed

+379
-91
lines changed

4 files changed

+379
-91
lines changed

src/bloqade/cirq_utils/__init__.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,7 @@
1-
from .parallelize import parallelize as parallelize
1+
from .parallelize import (
2+
parallelize as parallelize,
3+
no_similarity as no_similarity,
4+
auto_similarity as auto_similarity,
5+
block_similarity as block_similarity,
6+
moment_similarity as moment_similarity,
7+
)

src/bloqade/cirq_utils/lineprog.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def __rmul__(self, factor: float | int) -> "Expression":
121121
return self.__mul__(factor)
122122

123123

124-
class Solution(dict): ...
124+
class Solution(dict[Variable, float]): ...
125125

126126

127127
@dataclasses.dataclass(frozen=False)

0 commit comments

Comments
 (0)