Skip to main content

Wrapper package for the einsum benchmark dataset and code to create new instances of the various types used in the benchmark

Project description

Einsum Benchmark Data

Benchmark data repository accompanying the paper: "Einsum Benchmark: Enabling the Development of Next-Generation Tensor Execution Engines". It includes a package to easily work with the benmark data and all methods we used to convert and create our instances so you can create new ones yourself.

Installation

Install the base package with Python 3.10 through 3.14:

pip install einsum_benchmark

Basic Usage

Now you can load and run an instance like this:

import opt_einsum as oe
import einsum_benchmark

instance = einsum_benchmark.instances["qc_circuit_n49_m14_s9_e6_pEFGH_simplified"]

opt_size_path_meta = instance.paths.opt_size
print("Size optimized path")
print("log10[FLOPS]:", round(opt_size_path_meta.flops, 2))
print("log2[SIZE]:", round(opt_size_path_meta.size, 2))
result = oe.contract(
    instance.format_string, *instance.tensors, optimize=opt_size_path_meta.path
)
print("sum[OUTPUT]:", result.sum(), instance.result_sum)

For more information please read our docs.

The code for our experiments is here: https://github.com/ti2-group/einsum_benchmark_experiments

Acknowledgements

The broader data collection process included contributions from individuals whose data was transformed. We duly acknowledge the following for making their data publicly available:

Moreover, we thank the following authors of open source software used to generated instances:

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

einsum_benchmark-0.1.8.tar.gz (75.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

einsum_benchmark-0.1.8-py3-none-any.whl (96.3 kB view details)

Uploaded Python 3

File details

Details for the file einsum_benchmark-0.1.8.tar.gz.

File metadata

  • Download URL: einsum_benchmark-0.1.8.tar.gz
  • Upload date:
  • Size: 75.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.22.3 CPython/3.13.1 Darwin/25.5.0

File hashes

Hashes for einsum_benchmark-0.1.8.tar.gz
Algorithm Hash digest
SHA256 ba8ad0d3eff39005297a4c1958d1a8c1d0d4c40c52bb0c055ccd52e566acf773
MD5 6ad2961353cf052c3ecf2a8f67494896
BLAKE2b-256 fbca3602fa3693293ed27172344ca6573cff09ce37a26fc41b795e819f18a070

See more details on using hashes here.

File details

Details for the file einsum_benchmark-0.1.8-py3-none-any.whl.

File metadata

  • Download URL: einsum_benchmark-0.1.8-py3-none-any.whl
  • Upload date:
  • Size: 96.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.22.3 CPython/3.13.1 Darwin/25.5.0

File hashes

Hashes for einsum_benchmark-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 8285ef68a0c3388a63896d5cc4d43befac59b8a56d986c6d8ebe93c53f208731
MD5 66e41dde0496380fe635c237bade44fe
BLAKE2b-256 3849cfda411e0d15926bb2e4f44b5666cfd6367fe0b0a3452a54f6bbbbc530da

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page