Skip to content

Commit

Permalink
Import YaoAPI interfaces: apply_mat! and mat_back! (#492)
Browse files Browse the repository at this point in the history
implement YaoAPI interfaces: apply_mat! and mat_back!
  • Loading branch information
GiggleLiu authored Jan 31, 2024
1 parent e17a32b commit 1268b9d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/YaoBlocks/src/YaoBlocks.jl
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ import YaoAPI:
subblocks,
nparameters,
measure!,
measure
measure,
apply_back!,
mat_back!

export AbstractBlock,
AbstractContainer,
Expand Down
1 change: 1 addition & 0 deletions lib/YaoBlocks/src/autodiff/autodiff.jl
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ using BitBasis, YaoArrayRegister, YaoAPI
using ..YaoBlocks
import ChainRulesCore:
rrule, @non_differentiable, NoTangent, Tangent, backing, AbstractTangent, ZeroTangent
import YaoAPI: mat_back!, apply_back!
using SparseArrays, LuxurySparse, LinearAlgebra

include("NoParams.jl")
Expand Down

0 comments on commit 1268b9d

Please sign in to comment.