Skip to content

Commit 1aadc58

Browse files
committed
export JordanMPO + type alias to shorten printing
1 parent a3d6ccc commit 1aadc58

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

src/MPSKit.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ export QP, LeftGaugedQP, RightGaugedQP
1818
# operators:
1919
export AbstractMPO
2020
export MPO, FiniteMPO, InfiniteMPO
21+
export JordanMPOTensor, JordanMPOTensorMap
2122
export MPOHamiltonian, FiniteMPOHamiltonian, InfiniteMPOHamiltonian
2223
export MultilineMPO
2324
export UntimedOperator, TimedOperator, MultipliedOperator, LazySum

src/operators/jordanmpotensor.jl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,14 @@ struct JordanMPOTensor{
5858
end
5959
end
6060

61+
const JordanMPOTensorMap{T, S, A <: DenseVector{T}} = JordanMPOTensor{
62+
T, S,
63+
Union{TensorMap{T, S, 2, 2, A}, BraidingTensor{T, S}},
64+
TensorMap{T, S, 2, 1, A},
65+
TensorMap{T, S, 1, 2, A},
66+
TensorMap{T, S, 1, 1, A},
67+
}
68+
6169
function JordanMPOTensor{E, S}(::UndefInitializer, V::TensorMapSumSpace{S}) where {E, S}
6270
return jordanmpotensortype(S, E)(undef, V)
6371
end

0 commit comments

Comments
 (0)