Skip to content
This repository has been archived by the owner on Dec 18, 2021. It is now read-only.

Commit

Permalink
update more doc
Browse files Browse the repository at this point in the history
  • Loading branch information
Roger-luo committed Dec 11, 2019
1 parent 2bd108f commit 0d273c0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/symengine/register.jl
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ Base.:(*)(x::AdjointSymReg{B,MT}, y::AdjointSymReg{B,MT}) where {B,MT} =
Base.:(^)(x::AdjointSymReg{B,MT}, n::Int) where {B,MT} = adjoint(parent(x)^n)

SymEngine.expand(x::SymReg{B}) where {B} = ArrayReg{B}(expand.(state(x)))

"""
szero_state(n; nbatch=1)
Create a symbolic zero state, same as `ket"000"`, but allows you use an integer.
"""
szero_state(args...; kwargs...) = zero_state(Basic, args...; kwargs...)

function YaoBase.partial_tr(r::SymReg{B}, locs) where {B}
Expand Down

0 comments on commit 0d273c0

Please sign in to comment.