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 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mimiq_tensorkeeper-0.1.2-cp311-abi3-win_amd64.whl | CPython 3.11 | abi3 | Windows x86-64 | Details for mimiq_tensorkeeper-0.1.2-cp311-abi3-win_amd64.whl |
| mimiq_tensorkeeper-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-0.1.2-cp311-abi3-manylinux_2_34_x86_64.manylinux_2_35_x86_64.whl |
| mimiq_tensorkeeper-0.1.2-cp311-abi3-macosx_11_0_arm64.whl | CPython 3.11 | abi3 | macOS 11.0+ ARM64 | Details for mimiq_tensorkeeper-0.1.2-cp311-abi3-macosx_11_0_arm64.whl |
Total release size: 1.2 MB
Release files / mimiq_tensorkeeper-0.1.2-cp311-abi3-win_amd64.whl
| Download URL | mimiq_tensorkeeper-0.1.2-cp311-abi3-win_amd64.whl |
|---|---|
| Size | 494.0 kB |
| Tags | CPython 3.11 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
607f59006c4fce1d242dec94ecc6cb2375e885f333f1ace731883c3c4f7e6a67
|
|
BLAKE2b-256 checksum How to use checksums |
078b21915d944237321af6a65eae3d019fe08a1695504dcf3759a6f79fa510d1
|
| 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-0.1.2-cp311-abi3-manylinux_2_34_x86_64.manylinux_2_35_x86_64.whl
| Download URL | mimiq_tensorkeeper-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 |
9180e8c7be6b2aa3f7f2bf2fcd1643728cc93eb75c3b2941d4752e9630698e71
|
|
BLAKE2b-256 checksum How to use checksums |
15fcd1289538a99f5c11a7390084638b1be8eea997d00d31700be48953120b13
|
| 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-0.1.2-cp311-abi3-macosx_11_0_arm64.whl
| Download URL | mimiq_tensorkeeper-0.1.2-cp311-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 330.0 kB |
| Tags | CPython 3.11 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
66d85f308461ba03677562cc3402a89c366c16c39f3040d182344e7c273379c2
|
|
BLAKE2b-256 checksum How to use checksums |
10f5d714f38436c57ca90e0e318f29499551997588e4ab047c405511493dffa0
|
| 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 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.