diff --git a/src/intrinsic.jl b/src/intrinsic.jl index b1321f8..4ae3687 100644 --- a/src/intrinsic.jl +++ b/src/intrinsic.jl @@ -57,6 +57,7 @@ end @intrinsic H @intrinsic S @intrinsic T +@intrinsic SWAP @intrinsic shift(θ::T) where {T} @intrinsic Rx(θ::T) where {T} @intrinsic Ry(θ::T) where {T} diff --git a/test/runtests.jl b/test/runtests.jl index de3ae08..828e43a 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -8,6 +8,7 @@ using YaoHIR: @intrinsic @intrinsic X @intrinsic R(theta::T) where {T <: Real} +@intrinsic SWAP end