tencent-quantum-lab / tensorcircuit

Tensor network based quantum software framework for the NISQ era
https://tensorcircuit.readthedocs.io
Apache License 2.0
257 stars 76 forks source link

Backend agnostic implementation of quantum Hamiltonian generation #161

Closed refraction-ray closed 1 month ago

refraction-ray commented 1 year ago

Task description

Revise the following code using tensorcircuit backend API instead of tf API, making it backend agnostic

Implementation

Revise the following code using tensorcircuit backend API instead of tf API, making it backend agnostic, at least work for both tensorflow and jax (the efficiency could also be benchmarked)

https://github.com/tencent-quantum-lab/tensorcircuit/blob/master/tensorcircuit/quantum.py#L1167-L1468

You can add the missing backend method in /tensorcircuit/backends like the bitwise shift operations if necessary

Requirements

Difficulty: ★★

refraction-ray commented 1 month ago

@king-p3nguin finished this issue. I guess you have to leave a comment in this issue so that I can assign the issue to you?

king-p3nguin commented 1 month ago

I see. I would like to be assigned to this issue.