From 899200c67c8fa2ddd68c454ced0294bb83b7a0bd Mon Sep 17 00:00:00 2001 From: Stefan Krastanov Date: Tue, 20 Jun 2023 13:25:06 -0400 Subject: [PATCH] JET simplifications --- test/test_jet.jl | 32 +++----------------------------- 1 file changed, 3 insertions(+), 29 deletions(-) diff --git a/test/test_jet.jl b/test/test_jet.jl index b895b969b..1f57b020a 100644 --- a/test/test_jet.jl +++ b/test/test_jet.jl @@ -4,6 +4,7 @@ using ArrayInterface using Static using Graphs using LinearAlgebra +using Polyester using JET: ReportPass, BasicPass, InferenceErrorReport, UncaughtExceptionReport @@ -22,34 +23,6 @@ function (::MayThrowIsOk)(report_type::Type{<:InferenceErrorReport}, @nospeciali end @testset "JET checks" begin - @test isempty(JET.get_reports(@report_call random_destabilizer(10))) - @test isempty(JET.get_reports(@report_call random_stabilizer(10))) - @test isempty(JET.get_reports(@report_call random_clifford(10))) - - s = random_stabilizer(10) - p = random_pauli(10) - c = random_clifford(10) - c2 = random_clifford(2) - @test isempty(JET.get_reports(@report_call project!(s,p))) - @test isempty(JET.get_reports(@report_call apply!(s,p))) - @test isempty(JET.get_reports(@report_call apply!(s,c))) - @test isempty(JET.get_reports(@report_call apply!(s,sCNOT(1,2)))) - @test isempty(JET.get_reports(@report_call apply!(s,sHadamard(1)))) - @test isempty(JET.get_reports(@report_call apply!(s,c2,[1,2]))) - @test isempty(JET.get_reports(@report_call canonicalize!(s))) - @test isempty(JET.get_reports(@report_call canonicalize_gott!(s))) - @test isempty(JET.get_reports(@report_call canonicalize_rref!(s))) - - @test isempty(JET.get_reports(@report_call QuantumClifford._project!(s,p))) - @test isempty(JET.get_reports(@report_call QuantumClifford._apply!(s,p))) - @test isempty(JET.get_reports(@report_call QuantumClifford._apply!(s,c))) - @test isempty(JET.get_reports(@report_call QuantumClifford._apply!(s,sCNOT(1,2)))) - @test isempty(JET.get_reports(@report_call QuantumClifford._apply!(s,sHadamard(1)))) - @test isempty(JET.get_reports(@report_call QuantumClifford._apply!(s,c2,[1,2]))) - @test isempty(JET.get_reports(@report_call QuantumClifford._canonicalize!(s))) - @test isempty(JET.get_reports(@report_call QuantumClifford._canonicalize_gott!(s))) - @test isempty(JET.get_reports(@report_call QuantumClifford._canonicalize_rref!(s,[1,3]))) - rep = report_package("QuantumClifford"; report_pass=MayThrowIsOk(), ignored_modules=( @@ -57,7 +30,8 @@ end AnyFrameModule(Graphs.SimpleGraphs), AnyFrameModule(ArrayInterface), AnyFrameModule(Static), - AnyFrameModule(LinearAlgebra) + AnyFrameModule(LinearAlgebra), + AnyFrameModule(Polyester) ) ) @show rep