Skip to content

Commit

Permalink
use IRCode not CodeInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
Roger-luo committed May 10, 2021
1 parent 1687c22 commit 318bc39
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/YaoHIR.jl
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export GenericRoutine, Routine,
using MLStyle
using Expronicon
using Core: CodeInfo
using Core.Compiler: IRCode

include("types.jl")
include("intrinsic.jl")
Expand Down
2 changes: 1 addition & 1 deletion src/types.jl
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ end
Base.adjoint(x::Ctrl) = Ctrl(adjoint(x.gate), x.ctrl)

struct BlockIR
parent::CodeInfo
parent::IRCode
nqubits::Int
circuit::Chain
end
Expand Down

0 comments on commit 318bc39

Please sign in to comment.