Skip to content

Console output of MPOs is not the same as in the documentation #378

@AndreasChristophilopoulos

Description

Let's say I run this code from the documentation:

S_x = TensorMap(ComplexF64[0 1; 1 0], ℂ^2 ← ℂ^2)
S_z = TensorMap(ComplexF64[1 0; 0 -1], ℂ^2 ← ℂ^2)
O_xzx = FiniteMPO(S_x ⊗ S_z ⊗ S_x);

Then, if I do O_xzx[2], the documentation claims the console output will be:

1×2←2×1 TensorMap{ComplexF64, TensorKit.ComplexSpace, 2, 2, Vector{ComplexF64}}:
 codomain: (ℂ^1 ⊗ ℂ^2)
 domain: (ℂ^2 ⊗ ℂ^1)
 blocks: 
 * Trivial() => 2×2 reshape(view(::Vector{ComplexF64}, 1:4), 2, 2) with eltype ComplexF64:
      0.0+0.0im  0.707107+0.0im
 0.707107+0.0im       0.0+0.0im

however, the output that I am getting is merely:

1×2←2×1 TensorMap{ComplexF64, ComplexSpace, 2, 2, Vector{ComplexF64}}:
 codomain: (ℂ^1 ⊗ ℂ^2)
 domain: (ℂ^2 ⊗ ℂ^1)

In other words, I am completely missing the "blocks" section. Why is that?

I am using MPSKit version 0.13.8 with TensorKit 0.15.3. I am not using the latest version of either because I had "storagetype" related problems with the latest versions, but that's a different problem, and someone else has raised it already.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions