Skip to content

Commit

Permalink
Fix return type of inds when querying physical indices
Browse files Browse the repository at this point in the history
  • Loading branch information
mofeing committed Sep 4, 2024
1 parent fb2b2df commit ad14e01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Quantum.jl
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ end
@kwmethod inds(tn::AbstractQuantum; at) = Quantum(tn).sites[at]
@kwmethod function inds(tn::AbstractQuantum; set)
if set === :physical
return values(Quantum(tn).sites)
return collect(values(Quantum(tn).sites))
elseif set === :virtual
return setdiff(inds(tn), values(Quantum(tn).sites))
else
Expand Down

0 comments on commit ad14e01

Please sign in to comment.