An open API service indexing awesome lists of open source software.

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.

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 json

with open('oe_sample_MAXCUT_n50_reg5_seed0.json') as file:
loaded = json.load(file)
eq, shapes = loaded['eq'], loaded['shapes']
```