SaashaJoshi / piQture

piQture: A quantum machine learning library for image processing.
https://saashajoshi.github.io/piQture/
Apache License 2.0
20 stars 10 forks source link

Add unit tests for gates and tensor network models #20

Closed SaashaJoshi closed 9 months ago

SaashaJoshi commented 9 months ago

The following tests are to be added with this PR:

Partially solves #11 Closes #5

Edit: Excluding MERA testing from this PR since the mera.py file requires some significant changes to program logic.

SaashaJoshi commented 9 months ago

The design changes to two_qubit _unitary help solve and close #5. Refer commit 3366460

SaashaJoshi commented 9 months ago

TwoQubitUnitary().real_simple_block is a static method and its testing is skipped from the test_two_qubit_unitary.py file to follow an indirect testing procedure. Since a higher-order method, like TTN.ttn_backbone, calls the aforementioned static method directly, it is indirectly tested via this TTN method.