Skip to content

Commit

Permalink
rank is not imported from LinearAlgebra
Browse files Browse the repository at this point in the history
  • Loading branch information
Krastanov committed Jan 10, 2022
1 parent 829cb76 commit 9dee9ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/project_trace_reset.jl
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ function reset_qubits!(s::MixedDestabilizer, newstate::Stabilizer, qubits; phase
else # Commutes with everyone
if res!=0 && phases # TODO many of the checks below were already done by project!; find a way to not repeat them
destab = destabilizerview(s)
r = rank(s)
r = LinearAlgebra.rank(s)
loc = findfirst(i->comm(pauli,destab,i)!=0, 1:r)
for i in loc+1:r
if comm(pauli, destab, i)!=0
Expand Down

0 comments on commit 9dee9ae

Please sign in to comment.