tensorcircuit icon indicating copy to clipboard operation
tensorcircuit copied to clipboard

Backend agnostic implementation of quantum Hamiltonian generation

Open refraction-ray opened this issue 2 years ago • 0 comments

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 avatar Jul 12 '23 05:07 refraction-ray