From 7c67f585f165f0e65d6cbd6690109e2f05c5af83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20S=C3=A1nchez=20Ram=C3=ADrez?= Date: Wed, 2 Oct 2024 04:31:59 +0200 Subject: [PATCH] Set temporarily a more concrete type of `lattice` in graph to circunvent a Julia bug --- src/Ansatz/Ansatz.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Ansatz/Ansatz.jl b/src/Ansatz/Ansatz.jl index 9a29edf7..22ba076b 100644 --- a/src/Ansatz/Ansatz.jl +++ b/src/Ansatz/Ansatz.jl @@ -38,7 +38,7 @@ abstract type AbstractAnsatz <: AbstractQuantum end """ struct Ansatz <: AbstractAnsatz tn::Quantum - lattice::MetaGraph + lattice::MetaGraph{Int,G,Site{1},Nothing} where {G<:Graphs.AbstractGraph{Int}} function Ansatz(tn, lattice) if !issetequal(lanes(tn), labels(lattice))