Skip to content

Commit 647e940

Browse files
authored
Merge branch 'main' into Docs_rm_ITensorMPS
2 parents 598a789 + d7d7387 commit 647e940

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/qn/qnindex.jl

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -139,25 +139,24 @@ function Index(qnblocks::QNBlocks; dir::Arrow=Out, tags="", plev=0)
139139
end
140140

141141
"""
142-
Index(qnblocks::Vector{Pair{QN, Int64}}, tags; dir::Arrow = Out,
143-
plev::Integer = 0)
142+
Index(qnblocks::Vector{Pair{QN, Int64}}, tags; plev::Integer = 0)
144143
145144
Construct a QN Index from a Vector of pairs of QN and block
146145
dimensions.
147146
148147
# Example
149148
150149
```
151-
Index([QN("Sz", -1) => 1, QN("Sz", 1) => 1], "i"; dir = In)
150+
i = Index([QN("Sz", -1) => 1, QN("Sz", 1) => 1], "i")
151+
idag = dag(i) # Same Index with arrow direction flipped
152152
```
153153
"""
154154
function Index(qnblocks::QNBlocks, tags; dir::Arrow=Out, plev::Integer=0)
155155
return Index(qnblocks; dir=dir, tags=tags, plev=plev)
156156
end
157157

158158
"""
159-
Index(qnblocks::Pair{QN, Int64}...; dir::Arrow = Out,
160-
tags = "",
159+
Index(qnblocks::Pair{QN, Int64}...; tags = "",
161160
plev::Integer = 0)
162161
163162
Construct a QN Index from a list of pairs of QN and block

0 commit comments

Comments
 (0)