ITensor / ITensor/ITensorMPS.jl

Add `reverse(::MPS/MPO)`

Open
#57 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Julia
Stars
85
Forks
27
Avg merge
22m
Merged PRs (30d)
1

Description

Define reverse(::MPS/MPO) by reversing the tensor order as well as the orthogonality limits.

julia> using ITensors

julia> s = siteinds("S=1/2", 3);

julia> psi = MPS(s);

julia> reverse(psi)
ERROR: MethodError: no method matching reverse(::MPS)
Closest candidates are:
  reverse(::Tuple) at tuple.jl:466
  reverse(::Pair{A, B}) where {A, B} at pair.jl:61
  reverse(::Union{SubString{String}, String}) at strings/substring.jl:166
  ...
Stacktrace:
 [1] top-level scope
   @ REPL[8]:1

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the Julia REPL example and inspect existing MPS and MPO methods related to tensor ordering and orthogonality limits. Done means reverse(psi) and the corresponding MPO call work without a MethodError, with both tensor order and orthogonality limits reversed.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia
Domain
backend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.