Skip to content

Commit 9750e06

Browse files
committed
Factor 1/2 in Sn and Sp
1 parent 05c8944 commit 9750e06

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/bloqade/pyqrack/squin/runtime.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -163,18 +163,18 @@ def control_apply(self, *qubits: PyQrackQubit, adjoint: bool = False) -> None:
163163
class SpRuntime(MtrxOpRuntime):
164164
def mat(self, adjoint: bool) -> list[complex]:
165165
if adjoint:
166-
return [0, 0, 1, 0]
166+
return [0, 0, 0.5, 0]
167167
else:
168-
return [0, 1, 0, 0]
168+
return [0, 0.5, 0, 0]
169169

170170

171171
@dataclass(frozen=True)
172172
class SnRuntime(MtrxOpRuntime):
173173
def mat(self, adjoint: bool) -> list[complex]:
174174
if adjoint:
175-
return [0, 1, 0, 0]
175+
return [0, 0.5, 0, 0]
176176
else:
177-
return [0, 0, 1, 0]
177+
return [0, 0, 0.5, 0]
178178

179179

180180
@dataclass(frozen=True)

0 commit comments

Comments
 (0)