Skip to content

Commit eb6b832

Browse files
committed
Fix stim tests by removing newlines
1 parent e2493cd commit eb6b832

File tree

10 files changed

+4
-12
lines changed

10 files changed

+4
-12
lines changed
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
21
# debug message
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
21
H 1

test/stim/passes/stim_reference_programs/qubit/qubit.stim

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
H 0 1
32
X 0
43
CX 0 1
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
21
H 0 1 2 3
32
MZ(0.00000000) 0 1 2 3

test/stim/passes/stim_reference_programs/qubit/qubit_loss.stim

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
H 0 1 2 3 4
32
I_ERROR[loss](0.10000000) 3
43
I_ERROR[loss](0.05000000) 0 1 2 3 4
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
21
RZ 0
32
MZ(0.00000000) 0

test/stim/passes/stim_reference_programs/qubit/rep_code.stim

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
RZ 0 1 2 3 4
32
CX 0 1 2 3
43
CX 2 1 4 3

test/stim/passes/stim_reference_programs/qubit/u3_gates.stim

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
Z 0
32
SQRT_X_DAG 0
43
SQRT_X_DAG 0
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
21
H 0
32
MZ(0.00000000) 0

test/stim/passes/test_squin_noise_to_stim.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -252,10 +252,11 @@ def test():
252252

253253
SquinToStimPass(test.dialects)(test)
254254

255-
emit = EmitStimMain(correlation_identifier_offset=10)
255+
buf = io.StringIO()
256+
emit = EmitStimMain(test.dialects, correlation_identifier_offset=10, io=buf)
256257
emit.initialize()
257-
emit.run(mt=test, args=())
258-
stim_str = emit.get_output().strip()
258+
emit.run(test)
259+
stim_str = buf.getvalue().strip()
259260
assert stim_str == "I_ERROR[correlated_loss:10](0.10000000) 0 1 2 3"
260261

261262

0 commit comments

Comments
 (0)