tencent-quantum-lab / tensorcircuit

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

Create stabilizer_stim_sim.py #221

Closed AbdullahKazi500 closed 3 months ago

AbdullahKazi500 commented 3 months ago

each function has a descriptive docstring that explains its purpose, arguments, and return values. This improves the readability and usability of the code, making it easier for others to understand and use. fixes #211

refraction-ray commented 3 months ago

please move the scripts to /examples folder. I have run your script, and the entanglement output from the calculation and tc is not consistent

AbdullahKazi500 commented 3 months ago

@refraction-ray Hi some of the functionalities of the stim package is different as compared with tencent quantum lab maybe due to that reason it is not printing out the right entropy but even getting the calculate entropy function is a big thing because there were many errors which I needed to debug for this