Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "ITensors"
uuid = "9136182c-28ba-11e9-034c-db9fb085ebd5"
authors = ["Matthew Fishman <[email protected]>", "Miles Stoudenmire <[email protected]>"]
version = "0.8.1"
version = "0.8.2"

[deps]
Adapt = "79e6a3ab-5dfb-504d-930d-738a2a938a0e"
Expand Down
9 changes: 4 additions & 5 deletions src/qn/qnindex.jl
Original file line number Diff line number Diff line change
Expand Up @@ -139,25 +139,24 @@ function Index(qnblocks::QNBlocks; dir::Arrow=Out, tags="", plev=0)
end

"""
Index(qnblocks::Vector{Pair{QN, Int64}}, tags; dir::Arrow = Out,
plev::Integer = 0)
Index(qnblocks::Vector{Pair{QN, Int64}}, tags; plev::Integer = 0)

Construct a QN Index from a Vector of pairs of QN and block
dimensions.

# Example

```
Index([QN("Sz", -1) => 1, QN("Sz", 1) => 1], "i"; dir = In)
i = Index([QN("Sz", -1) => 1, QN("Sz", 1) => 1], "i")
idag = dag(i) # Same Index with arrow direction flipped
```
"""
function Index(qnblocks::QNBlocks, tags; dir::Arrow=Out, plev::Integer=0)
return Index(qnblocks; dir=dir, tags=tags, plev=plev)
end

"""
Index(qnblocks::Pair{QN, Int64}...; dir::Arrow = Out,
tags = "",
Index(qnblocks::Pair{QN, Int64}...; tags = "",
plev::Integer = 0)

Construct a QN Index from a list of pairs of QN and block
Expand Down
Loading