Skip to content

Bug for contractions with Z2 x U(1) symmetry #613

Description

@manuschneider

Contractions of several UniTensors with Z2 x U(1) symmetry fail:

bond_a = cytnx.Bond(
    cytnx.BD_IN, [cytnx.Qs(0,0)>>1],
    [cytnx.Symmetry.Zn(2), cytnx.Symmetry.U1()])
bond_b = bond_a.redirect()
uT = cytnx.UniTensor([bond_a, bond_b],dtype=cytnx.Type.Double)
[Sf,Uf,Vtf] = cytnx.linalg.Svd(uT,True)
Tfnew = cytnx.Contract([Uf,Sf,Vtf])

If I run this in python, the kernel crashes.

A sequential contraction as follows works fine:

Tnew = cytnx.Contract(Uf,Sf)
Tnew = cytnx.Contract([Tnew,Vtf])

Metadata

Metadata

Assignees

Labels

Top priorityThe Issue that has top prioritybugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions