seitzdom
seitzdom
**Update for clarity: This issue is about the Module API.** Come up with simple circuits, compute the expected result analytically and check if the result matches. 1. The first testfile...
https://pytorch.org/tensordict/
Closes #20
https://github.com/pasqal-io/qadence/blob/main/tests/backends/test_backends.py#L296 occasionally fails with: ``` FAILED tests/backends/test_backends.py::test_compare_run_to_sample[pyqtorch] - AssertionError: assert nan < (0.075 + 1e-07) + where nan = js_divergence(Counter({'0': 1000}), Counter({'0': 1.0, '1': 5e-324})) Falsifying example: test_compare_run_to_sample( backend='pyqtorch', circuit=ChainBlock(0)...
Porting and adjusting @vytautas-a implementation of the time-dependent forward
cc @Roland-djee Possible options: 1. JSON (like qadence) or https://pytorch.org/docs/stable/notes/serialization.html for QuantumCircuit 2. tensordict serialization for Embedding https://pytorch.org/docs/stable/notes/serialization.html