Skip to content

Commit 840da2d

Browse files
committed
change clifford string to pauli string
1 parent 26f7dde commit 840da2d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/bloqade/squin/op/stmts.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,14 +147,14 @@ class PauliOp(ConstantUnitary):
147147

148148

149149
@statement(dialect=dialect)
150-
class CliffordString(ConstantUnitary):
150+
class PauliString(ConstantUnitary):
151151
traits = frozenset({ir.Pure(), lowering.FromPythonCall(), Unitary(), HasSites()})
152152
string: str = info.attribute()
153153

154154
def verify(self) -> None:
155-
if not set("XYZHS").issuperset(self.string):
155+
if not set("XYZ").issuperset(self.string):
156156
raise ValueError(
157-
f"Invalid Clifford string: {self.string}. Must be a combination of 'X', 'Y', 'Z', 'H', and 'S'."
157+
f"Invalid Pauli string: {self.string}. Must be a combination of 'X', 'Y', and 'Z'."
158158
)
159159

160160

0 commit comments

Comments
 (0)