From d3474417dde4cb69611d586c1b93a531ec591862 Mon Sep 17 00:00:00 2001 From: Chen Zhao <50411747+ChenZhao44@users.noreply.github.com> Date: Thu, 13 May 2021 23:24:01 +0800 Subject: [PATCH] add swap (#3) --- src/intrinsic.jl | 1 + test/runtests.jl | 1 + 2 files changed, 2 insertions(+) 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