Skip to main content

PyPI License: MIT CI Bindings codecov

Munich Nanotech Toolkit logo

MNT Bench: Layout Library for Field-coupled Nanocomputing Circuits

MNT Bench is a field-coupled nanocomputing circuit benchmark suite for multiple gate libraries and clocking schemes.

MNT Bench is part of the Munich Nanotech Toolkit (MNT) developed by the Chair for Design Automation at the Technical University of Munich and is hosted at https://www.cda.cit.tum.de/mntbench/.

This documentation explains how to use MNT Bench to filter and download benchmarks.

Benchmark Selection

So far, the functions from the following benchmark sets are implemented and provided:

  1. Trindade16
  2. Fontes18
  3. ISCAS85
  4. EPFL

Gate Libraries

So far, MNT Bench supports the following native gate-sets:

  1. ONE (for QCA) gate set: [AND, OR, NOT, BUF]
  2. Bestagon (for SiDB) gate set: [AND, NAND, OR, NOR, XOR, XNOR, NOT, BUF]

Clocking Schemes

Most of the layouts are available for any of the following clocking schemes:

2DDWave ESR
2DDWave ESR
USE RES
USE RES
Row
Row

Repository structure

src/mnt/bench/        Viewer backend, templates, and static assets
tests/                Unit and integration tests

Repository usage

There are three ways how to use this benchmark suite:

  1. Via the webpage hosted at https://www.cda.cit.tum.de/mntbench/
  2. Via the Python package mnt.bench, installed with uv or pip
  3. Directly via this repository

Since the first way is rather self-explanatory, the other two ways are explained in more detail in the following.

Usage via the Python package

MNT Bench supports Python 3.10 through 3.14 and is available from PyPI.

Install uv 0.13.5 or newer, then run:

uv tool install --python 3.13 mnt.bench
mnt-bench

uv manages a separate environment for the viewer; no activation is needed. The explicit Python version keeps the installation within the supported range, and uv can download Python if it is missing. If the command is not on your PATH, run uv tool update-shell and restart your terminal. To update the installed viewer, run uv tool upgrade mnt.bench.

To try the viewer without a persistent tool installation:

uvx --python 3.13 --from mnt.bench mnt-bench

The first run installs dependencies; subsequent runs reuse uv's cache. Benchmark data is still stored separately in ~/.mntbench. Stop the viewer with Ctrl+C. Open http://127.0.0.1:5001/mntbench/ in your browser.

Python library or pip installation

uv tool install isolates the application, so it does not make mnt.bench importable from your own Python scripts. For that, install it in your project's environment instead:

uv venv --python 3.13
uv pip install --python .venv mnt.bench
uv run --no-project --python .venv python -c "from mnt.bench.backend import Backend"

Standard pip installations remain supported:

python -m venv .venv
source .venv/bin/activate
python -m pip install mnt.bench

For fish, activate with source .venv/bin/activate.fish; for Windows PowerShell, use .venv\Scripts\Activate.ps1.

Locally hosting the MNT Bench Viewer

Additionally, this python package includes the same webserver used for the hosting of the MNT Bench webpage.

Start the MNT Bench Viewer from the terminal with either command:

mnt-bench
mnt.bench

This first searches for the most recent version of the benchmark files on GitHub and offers to download them. The archive is stored in ~/.mntbench by default. Afterwards, the webserver is started locally. The package includes an empty MNTBench_all.zip placeholder; the actual benchmarks are downloaded from the newest compatible release containing the archive, which may be older than the package release. Downloaded and cached archives must match the SHA-256 checksum embedded in the package. A failed download is discarded without replacing the existing archive. When publishing new benchmark data, update BENCHMARK_ARCHIVE_SHA256 in backend.py from a separately verified release asset; do not trust a checksum fetched alongside the download.

Keep the host's certificate store and each virtual environment's pip and certifi up to date. MNT Bench requires certifi>=2026.10.19; pip needs its own update because it bundles a separate certificate store. See the Python security announcement for secure upgrade instructions.

Usage directly via this repository

Clone and install the repository with:

git clone https://github.com/cda-tum/mnt-bench.git
cd mnt-bench
uv venv --python 3.13
uv pip install --python .venv -e ".[coverage]"
uv run --no-project --python .venv python -m pytest
uv run --no-project --python .venv mnt-bench

Afterwards, the package can be used as described above. Alternatively, activate a virtual environment and use python -m pip install -e ".[coverage]". CI builds with uv and the existing setuptools backend, tests wheel installs with uv and source installs with pip, and checks both uv tool install and uvx. Publishing and hosted deployments are unchanged.

Installation, browser, and dependency checks

CI smoke-tests built wheels on macOS ARM and Windows x64 with Python 3.13; the existing Linux jobs cover the minimum and maximum supported Python versions. One Chromium workflow checks the real interface, and a separate job audits freshly resolved runtime dependencies (including transitive dependencies) with pip-audit on PRs, main, and weekly. Browser failure traces are retained for seven days; these tests use temporary data only.

To run the browser check locally after creating the development environment:

uv pip install --python .venv pytest-playwright
uv run --no-project --python .venv python -m playwright install chromium
uv run --no-project --python .venv python -m pytest tests/browser_smoke.py

The browser test reuses the tiny unit-test archive, not the downloaded benchmark library.

Metadata

Release files for mnt.bench 0.4.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mnt.bench 0.4.3
File Size Uploaded Provenance Actions
mnt_bench-0.4.3.tar.gz 2.2 MB With provenance Details for mnt_bench-0.4.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mnt.bench 0.4.3
File Interpreter ABI Platform Actions
mnt_bench-0.4.3-py3-none-any.whl Python 3 none any Details for mnt_bench-0.4.3-py3-none-any.whl

Total release size: 4.3 MB

Release files / mnt_bench-0.4.3.tar.gz

Download URL mnt_bench-0.4.3.tar.gz
Size 2.2 MB
Tags Source
SHA-256 checksum
How to use checksums
3ba86b12001ea1247e45b386a83caea99f6e86279b54c67373ee725a5e595ffd
BLAKE2b-256 checksum
How to use checksums
ed7fc42902ae972254a69d454e871e7fd80335b7f534fa1c1abd9ad4e0492eaa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 25, 2026.

Transparency log

Release files / mnt_bench-0.4.3-py3-none-any.whl

Download URL mnt_bench-0.4.3-py3-none-any.whl
Size 2.2 MB
Tags Python 3
SHA-256 checksum
How to use checksums
5127849f34ad8631d26eaf51daf53c78f81cfec9169690b1a67aad3f86ed2253
BLAKE2b-256 checksum
How to use checksums
e7df09d2662f178ef2d69f096bb21cbea83542785e69b2376ed8c5d7c640179c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 25, 2026.

Transparency log

Security for mnt.bench 0.4.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for mnt_bench-0.4.3.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 25, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.4.3 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page