Skip to content

Commit 2d349a5

Browse files
committed
minor fixes
1 parent e3e84d8 commit 2d349a5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backtrajectory.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ function collapse_z!(T, q::Int)
9797
while pivot <= n && getxbit(t, n+q, pivot) == 0
9898
pivot += 1
9999
end
100-
if pivot == n+1
100+
if pivot >= n+1
101101
# No anti-commuting stabilizer generator. Measurement is deterministic.
102102
return -1
103103
end
@@ -134,7 +134,7 @@ end
134134
# return backtrajectory(circuit0, nqubits(state))
135135
# end
136136

137-
function backtrajectory(circuit::Vector{AbstractOperation})
137+
function backtrajectory(circuit::Vector{<:AbstractOperation})
138138
n = 0
139139
for op in circuit
140140
if op isa AbstractSingleQubitOperator

0 commit comments

Comments
 (0)