https://github.com/jcmgray/opt_einsum_samples
Tensor network sample contractions in JSON format for testing opt_einsum.
https://github.com/jcmgray/opt_einsum_samples
Last synced: 3 months ago
JSON representation
Tensor network sample contractions in JSON format for testing opt_einsum.
- Host: GitHub
- URL: https://github.com/jcmgray/opt_einsum_samples
- Owner: jcmgray
- License: apache-2.0
- Created: 2018-10-11T14:02:37.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-10-16T20:41:52.000Z (over 6 years ago)
- Last Synced: 2025-01-26T16:34:27.638Z (5 months ago)
- Language: Jupyter Notebook
- Homepage:
- Size: 992 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Sample Contractions
-------------------This is a collection of large sample tensor network contractions for testing ``opt_einsum`` with.
Usage
-----E.g. to load file ``'oe_sample_MAXCUT_n50_reg5_seed0.json'``:
```python
import jsonwith open('oe_sample_MAXCUT_n50_reg5_seed0.json') as file:
loaded = json.load(file)
eq, shapes = loaded['eq'], loaded['shapes']
```