Skip to main content

MIMIQ TensorKeeper: unlicensed mock

This distribution on PyPI is not the TensorKeeper simulator. It is MockTensorKeeper: the same interface, the same arguments, the same MIMIQ data models, and no simulation behind them. Results come back well-formed and empty: all-zero samples, zero amplitudes and expectation values, fidelity 1.0.

It exists so that code which drives a MIMIQ backend can be tested on a machine with no licence: a CI job can check that its circuits build, that its options are accepted, and that its results parse and round-trip, without paying for a simulation it does not care about.

pip install mimiq-tensorkeeper

The same build is also published as mimiq-tensorkeeper-mock. Use that name when a project declares the licensed package (mimiq-tensorkeeper, from QPerfect) and this mock side by side and needs the two to have different names. Install one or the other, never both: they install the same tensorkeeper package.

import mimiqcircuits as mc
from tensorkeeper import MockTensorKeeper

sim = MockTensorKeeper(bonddim=64)

c = mc.Circuit()
c.push(mc.GateH(), 0)
c.push(mc.GateCX(), 0, 1)
c.push(mc.Measure(), [0, 1], [0, 1])

res = sim.execute(c, nsamples=1000, seed=42)
res.histogram()        # {bs"00": 1000}: a real QCSResults, carrying nothing

MockTensorKeeper takes the same constructor and execute arguments as the licensed TkSimulator and refuses exactly what it refuses, so a configuration that fails here fails there. Swapping between them is an import change.

What this build cannot do

It is compiled without the compute kernels: gate application, the Clifford frame updates, measurement, sampling, noise and expectation values are not in the binary. tensorkeeper.has_kernels() is False, and TkSimulator raises on construction and says so.

python -m tensorkeeper.examples.00_mock_backend.main runs in this build; the other examples in tensorkeeper.examples_dir() show what the licensed one does.

The licensed simulator

TensorKeeper is a Clifford-augmented matrix product state quantum circuit simulator for MIMIQ, distributed by QPerfect to licence holders from its own package index rather than from PyPI.

For access, documentation and support: https://qperfect.io

Metadata

Release files for mimiq-tensorkeeper-mock 0.1.2

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

Built distributions (wheels)

Table of built distributions (wheels) for mimiq-tensorkeeper-mock 0.1.2
File Interpreter ABI Platform Actions
mimiq_tensorkeeper_mock-0.1.2-cp311-abi3-win_amd64.whl CPython 3.11 abi3 Windows x86-64 Details for mimiq_tensorkeeper_mock-0.1.2-cp311-abi3-win_amd64.whl
mimiq_tensorkeeper_mock-0.1.2-cp311-abi3-manylinux_2_34_x86_64.manylinux_2_35_x86_64.whl CPython 3.11 abi3 Linux glibc 2.35+ x86-64, Linux glibc 2.34+ x86-64 Details for mimiq_tensorkeeper_mock-0.1.2-cp311-abi3-manylinux_2_34_x86_64.manylinux_2_35_x86_64.whl
mimiq_tensorkeeper_mock-0.1.2-cp311-abi3-macosx_11_0_arm64.whl CPython 3.11 abi3 macOS 11.0+ ARM64 Details for mimiq_tensorkeeper_mock-0.1.2-cp311-abi3-macosx_11_0_arm64.whl

Total release size: 1.2 MB

Release files / mimiq_tensorkeeper_mock-0.1.2-cp311-abi3-win_amd64.whl

Download URL mimiq_tensorkeeper_mock-0.1.2-cp311-abi3-win_amd64.whl
Size 494.1 kB
Tags CPython 3.11 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
ac04d4a0d9954d7193c771aab6a99c2c3372448fa631af0e7da0884df94300fb
BLAKE2b-256 checksum
How to use checksums
dbed7c0ace6183fa8f248c7904525f3554efb649c980367640b4d6c974990c35
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Release files / mimiq_tensorkeeper_mock-0.1.2-cp311-abi3-manylinux_2_34_x86_64.manylinux_2_35_x86_64.whl

Download URL mimiq_tensorkeeper_mock-0.1.2-cp311-abi3-manylinux_2_34_x86_64.manylinux_2_35_x86_64.whl
Size 384.1 kB
Tags CPython 3.11 Linux glibc 2.34+ x86-64 Linux glibc 2.35+ x86-64 abi3
SHA-256 checksum
How to use checksums
a9f861f1ec013c17a3041d2dcca4f4f8eb30b24df1daf972e991747426ae48ae
BLAKE2b-256 checksum
How to use checksums
b534b0cbbdb75d3be2fcd4cc075ad6f725af53c703510af4bb5a2577d7c67463
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Release files / mimiq_tensorkeeper_mock-0.1.2-cp311-abi3-macosx_11_0_arm64.whl

Download URL mimiq_tensorkeeper_mock-0.1.2-cp311-abi3-macosx_11_0_arm64.whl
Size 330.1 kB
Tags CPython 3.11 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
c15186298fb0e74c2b8e2b26b2672d868b4608127a45b521af24c894a1637b98
BLAKE2b-256 checksum
How to use checksums
3c3704780c8a5722d6f0be847f86c88e8a27af1e697665b456e6e6c8f650794a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Security for mimiq-tensorkeeper-mock 0.1.2

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.1.2 This release

3 release files No 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