Beyond the Transistor

Install the toolkit

Install the Python package with the CPU emulator so you can develop without hardware, or install the default build on a machine with a Q.ANT card.

The CPU emulator build from source was tested with toolkit 2.5.0 on Python 3.12 and 3.15 on Linux on 18 November 2026 (192 tests passed, 1 deselected). Earlier versions were tested with toolkit 2.3.1 and 2.4.0.

The toolkit has two builds. Choose the one that matches your machine:

  • CPU emulator (cpu-backend). Runs on Linux, Windows and macOS on Apple silicon, according to the toolkit README. You don’t need a Q.ANT card or driver. Use it to learn the API and run the examples.
  • Default. Links against the Q.ANT driver and sends work to a physical card.

The toolkit is not on PyPI yet. A user asked for it in issue #4, and a Q.ANT collaborator replied that making the toolkit available on a package manager is on the roadmap.

Before you begin

  • Install Python 3.11 or newer and pip. We used Python 3.12 and 3.15.
  • Install Git.
  • To build from source, install a Rust toolchain with rustup. The repository’s rust-toolchain.toml pins Rust 1.93.0, and rustup installs that version on the first cargo run.

Install the CPU emulator from source

This path builds a wheel with the emulator compiled in.

  1. Clone the repository with its submodules:

    git clone --recurse-submodules https://github.com/Q-ANT-GmbH/qant_native_computing_toolkit.git
  2. Go to the repository folder:

    cd qant_native_computing_toolkit
  3. Install maturin, the build tool for Rust Python extensions:

    pip install maturin
  4. Build a release wheel with the CPU backend:

    maturin build --release -F cpu-backend -o wheels
  5. Install the wheel:

    pip install wheels/*.whl

Python versions newer than the wheels

Since toolkit 2.5.0, you don’t need a workaround for newer Python versions. The toolkit now builds one cp311-abi3 wheel, which works on every Python from 3.11 up. We built 2.5.0 from source with the steps above and ran the toolkit’s tests on Python 3.12 and 3.15 on 18 November 2026. Both gave the same result: 192 passed, 1 deselected.

Install for development

If you plan to change the toolkit code, the README recommends an editable development install instead of a wheel:

pip install maturin
maturin develop -F cpu-backend

maturin develop builds the extension and installs it into the active Python environment.

Install with Q.ANT hardware

  1. Install the Q.ANT drivers for your card. The toolkit README lists this as a prerequisite for the default build.

  2. Install the Python package. Use one of these options:

    • From a release wheel:

      pip install qant_native_computing_toolkit.<version>.whl
    • From source, in the cloned repository:

      pip install .
  3. For C or C++, install the Debian package:

    apt install ./qant_native_computing_toolkit.<version>.deb

To build the C and C++ shared library from source, run cargo build --release. Add -F cpu-backend for a standalone build without the driver:

cargo build --release -F cpu-backend

We did not test the hardware path. We have no access to a Q.ANT card.

Release packages

The releases page listed v2.5.0 as the latest release when we checked on 18 November 2026. Its assets were six zip archives plus the source code:

AssetContents
qant-native-computing-toolkit-wheels-default-v2.5.0.zipPython wheels, default build
qant-native-computing-toolkit-wheels-cpu-backend-v2.5.0.zipPython wheels, CPU emulator build
qant-native-computing-toolkit-deb-default-v2.5.0.zipDebian package, default build
qant-native-computing-toolkit-deb-cpu-backend-v2.5.0.zipDebian package, CPU emulator build
qant-native-computing-toolkit-python-api-doc-v2.5.0.zipPython API documentation
qant-native-computing-toolkit-c-api-doc-v2.5.0.zipC API documentation

The wheels are inside the zip archives. The README says there is one wheel per operating system and build, and its cp311-abi3 tag means it works on Python 3.11 or newer. Pick the file that ends in linux_x86_64, win_amd64 or macosx_..._arm64.

Verify the installation

  1. Check that Python finds the toolkit and an NPU:

    python -c "import qant_native_computing_toolkit as q; print(q.generic.get_available_npus())"

    On the CPU emulator with toolkit 2.5.0 this prints six simulated NPUs:

    [(0, 'cpu_backend_0'), (1, 'cpu_backend_1'), (2, 'cpu_backend_2'), (10, 'cpu_backend_gen2p_10'), (11, 'cpu_backend_gen2p_11'), (12, 'cpu_backend_gen2p_12')]

    Devices 0 to 2 act like Gen2 cards, and 10 to 12 like Gen2+ cards. On hardware the list holds each card’s ID and serial number. Toolkit 2.4.0 and older return a dictionary instead, {0: 'cpu_backend'} on the emulator.

  2. Check which backend you are using:

    python -c "import qant_native_computing_toolkit as q; print(q.info.get_driver_info())"

    On the CPU emulator this prints:

    cpu-backend;commit:none;

Run the toolkit’s tests

The toolkit ships its own pytest suite in python/tests.

  1. Go to the tests folder:

    cd python/tests
  2. Run the tests, excluding the logging test:

    python -m pytest -q -m "not logging"

With toolkit 2.5.0 on the CPU emulator the result was 192 passed, 1 deselected. The tests need PyTorch, which the toolkit’s CONTRIBUTING guide installs from the CPU-only index.

What’s next