Cytnx-dev / Cytnx

Project Cytnx, A Cross-section of Python & C++,Tensor network library
Apache License 2.0
35 stars 13 forks source link

Merge API for UniTensor.Contract() and UniTensor.Contracts() #420

Open pcchen opened 5 months ago

pcchen commented 5 months ago

Right now, we have

We should first think about what the new API should look like.

pcchen commented 3 months ago

This is to confirm that all following codes work properly. Please merge it into the master branch.

cytnx.Contract(A, B)
cytnx.Contract([A, B])
cytnx.Contract([A, B, C])

Question: Do we want to depreciate cytnx.Contract(A, B) and only support `cytnx.Contract([A, B])' in the future?