Skip to content

Commit

Permalink
Remove keyword arg descriptions for now
Browse files Browse the repository at this point in the history
  • Loading branch information
emstoudenmire committed Sep 5, 2023
1 parent f8a9e1b commit 80ada9c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
6 changes: 1 addition & 5 deletions src/mps/mpo.jl
Original file line number Diff line number Diff line change
Expand Up @@ -532,13 +532,9 @@ function logdot(M1::MPO, M2::MPO; make_inds_match::Bool=false, kwargs...)
end

"""
tr(M::MPO, kwargs...)
tr(M::MPO; kwargs...)
Compute the trace of the MPO `M`.
Optional keyword arguments:
* `plev::Pair{Int,Int}=(0=>1)` - specify which Index prime levels are to be paired for taking the trace. The default is prime levels 0 and 1.
* `tags::Pair=(ts""=>ts"")` - specify which Index tags to pair for taking the trace
"""
function tr(M::MPO; plev::Pair{Int,Int}=0 => 1, tags::Pair=ts"" => ts"")
N = length(M)
Expand Down
6 changes: 1 addition & 5 deletions src/tensor_operations/matrix_algebra.jl
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,12 @@ function _tr(T::ITensor; plev::Pair{Int,Int}=0 => 1, tags::Pair=ts"" => ts"")
end

"""
tr(T::ITensor, kwargs...)
tr(T::ITensor; kwargs...)
Trace an ITensor over pairs of indices determined by
the optional prime levels and tags passed as keyword arguments.
Indices that are not in pairs are not traced over, corresponding
to a "batched" trace.
Optional keyword arguments:
* `plev::Pair{Int,Int}=(0=>1)` - specify which Index prime levels are to be paired for taking the trace. The default is prime levels 0 and 1.
* `tags::Pair=(ts""=>ts"")` - specify which Index tags to pair for taking the trace
"""
function tr(T::ITensor; kwargs...)
return _tr(T; kwargs...)
Expand Down

0 comments on commit 80ada9c

Please sign in to comment.