From ad14e01087dc433c5940724a4d23b7925f52b9c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20S=C3=A1nchez=20Ram=C3=ADrez?= Date: Fri, 30 Aug 2024 12:22:31 +0200 Subject: [PATCH] Fix return type of `inds` when querying physical indices --- src/Quantum.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Quantum.jl b/src/Quantum.jl index 6d301f12..2cd9e4a1 100644 --- a/src/Quantum.jl +++ b/src/Quantum.jl @@ -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