File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ julia> using ITensors
6464julia> i = Index ([QN (" Sz" => - 1 )=> 2 , QN (" Sz" => 0 )=> 1 ]);
6565julia> A = random_itensor (Float64, i, dag (prime (i)));
6666julia> T = TensorMap (A);
67- julia> A_reconstructed = ITensor (T);
67+ julia> A_reconstructed = ITensor (T; ids = ITensors . id .( inds (A)), plevs = plev .( inds (A)) );
6868julia> T_reconstructed = TensorMap (A_reconstructed);
6969julia> A ≈ A_reconstructed
7070true
Original file line number Diff line number Diff line change 2121# julia> i = Index([QN("Sz"=>-1)=>2, QN("Sz"=>0)=>1]);
2222# julia> A = random_itensor(Float64, i, dag(prime(i)));
2323# julia> T = TensorMap(A);
24- # julia> A_reconstructed = ITensor(T);
24+ # julia> A_reconstructed = ITensor(T; ids = ITensors.id.(inds(A)), plevs = plev.(inds(A)) );
2525# julia> T_reconstructed = TensorMap(A_reconstructed);
2626# julia> A ≈ A_reconstructed
2727# true
You can’t perform that action at this time.
0 commit comments