Skip to content

Commit

Permalink
update API
Browse files Browse the repository at this point in the history
  • Loading branch information
GiggleLiu committed Aug 24, 2024
1 parent 2272934 commit 83dd4b4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/PhaseEstimation.jl
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function PEBlock(UG::GeneralMatrixBlock, n_reg::Int, n_b::Int)
end

# Inverse QFT Block.
iqft = concentrate(nbit, EasyBuild.qft_circuit(n_reg)',[1:n_reg...,])
iqft = subroutine(nbit, EasyBuild.qft_circuit(n_reg)',[1:n_reg...,])
chain(hs, control_circuit, iqft)
end

Expand Down
4 changes: 2 additions & 2 deletions src/TaylorTrunc.jl
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ n : total number of qubits
V : T input matrix
c : starting qubit
"""
v(n::Int,c::Int, T::Int, V::AbstractMatrix) = concentrate(n, matblock(V), (c + 1:T + c...,))
v(n::Int,c::Int, T::Int, V::AbstractMatrix) = subroutine(n, matblock(V), (c + 1:T + c...,))

"""
v(n::Int,c::Int, j::Tuple, T::Int, V::AbstractMatrix) -> ControlBlock{n}
Expand All @@ -190,7 +190,7 @@ c : starting qubit
j : control bits tuple
"""
v(n::Int,c::Int, j::Tuple, T::Int, V::AbstractMatrix) = control(n, j,(1 + c:T + c...,)=>matblock(V))
lc(n::Int,c::Int, i::Int, k::Int,l::Int, V::AbstractMatrix) = concentrate(n, matblock(V), (k+c+1+(i-1)*l:k+1+c+i*l-1...,))
lc(n::Int,c::Int, i::Int, k::Int,l::Int, V::AbstractMatrix) = subroutine(n, matblock(V), (k+c+1+(i-1)*l:k+1+c+i*l-1...,))


"""
Expand Down

0 comments on commit 83dd4b4

Please sign in to comment.