Skip to content

Contract(real_QN, complex_QN) fails with "not support type with dtype=3", but Contract(complex_QN, real_QN) succeeds #758

@chiamin

Description

@chiamin

Environment: cytnx 1.0.0, Python 3.9

I believe this is a bug.

Contracting a real BlockUniTensor (QN) with a complex one raises an error, but the reverse order succeeds.

Expected behavior: Both Contract(real, complex) and Contract(complex, real) should succeed (or both should fail), regardless of argument order.

I attached an example code.

QN_complex_real_contract.py

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions