diff --git a/test/integration/QrochetQuacExt_test.jl b/test/integration/QrochetQuacExt_test.jl new file mode 100644 index 0000000..19e4aea --- /dev/null +++ b/test/integration/QrochetQuacExt_test.jl @@ -0,0 +1,18 @@ +@testset "QrochetQuacExt" begin + using Quac + + @testset "QFT_3qubits" begin + qft3circ = Quac.Algorithms.QFT(3) + qft3qrochet = Quantum(qft3circ) + + # test sites (inputs and outputs) of the quantum circuit + for site in values(qft3qrochet.sites) + @test length(qft3qrochet.tn.indexmap[site]) == 1 + end + + # test inner tensors + for notsite in filter(idx -> idx ∉ values(qrqft3.sites), keys(qrqft3.tn.indexmap)) + @test length(qft3qrochet.tn.indexmap[notsite]) > 1 + end + end +end \ No newline at end of file