Skip to main content

PyPI - Version

MRzero Core

The MRzero Core contains the core functionality of MRzero like MRI sequence building, simulation and reconstruction. MRzero Core does not force you to take any particular approach to e.g., reconstruction, as it targets easy integration in existing projects. Nevertheless, more tools can be added in the future if they helpful for the general application space.

🎉 1.0 release

Version 1.0 adds Pulseq 1.5 support and flips the sign convention of the simulated signal, so that it is now the complex conjugate of what previous versions returned. Reconstruction accordingly switches from fft to ifft.

See the FFT sign conventions page for details, and the CHANGELOG for the full list of changes. If anything else broke, please open an issue.

Usage

MRzero Core is written in Python, heavily relying on PyTorch for fast (GPU-) Tensor calculations. To improve performance, parts of the simulation are written in Rust and compiled for x86 Windows and Linux, other platforms are currently not supported.

Install with pip:

pip install MRzeroCore

The typical way of using it is like the following:

import MRzeroCore as mr0

Examples on how to use MR-zero can be found in the Playground.

Pulseq Integration

MRzero Core makes Pulseq simulation incredibly easy - simulate any .seq file in just one line:

import MRzeroCore as mr0

# Simulate any Pulseq file
seq = mr0.Sequence.import_file("your_sequence.seq")
signal = mr0.util.simulate(seq)  # That's it!

Key Features:

  • One-line simulation of any Pulseq .seq file
  • PyPulseq integration - write sequences in Python, simulate with MR-zero
  • Google Colab ready - 13+ ready-to-run examples
  • MATLAB ↔ Python workflow - create in MATLAB Pulseq, simulate in Python
  • No dependencies - fully self-contained Pulseq parser included
  • Scanner-ready export - export MR-zero sequences as .seq files

Try it now: Open In Colab

Building from source

This assumes windows as host operating system. For building the python wheel, you need:

Building for Windows

maturin build --interpreter python

Building for Linux

docker run --rm -v <path-to-repo>/MRzero-Core:/io ghcr.io/pyo3/maturin build

Building the documentation

Install newest (beta) version of mdBook:

cargo install --git https://github.com/rust-lang/mdBook.git mdbook

Run a live-preview server:

# in the root directory:
mdbook serve documentation

Official builds

The python wheels hosted by PyPI is built as described above. It is deployed as GitHub action (see pypi_publish.yml)

Metadata

Release files for mrzerocore 1.6.1

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

Source distribution (sdist)

Source distribution for mrzerocore 1.6.1
File Size Uploaded Provenance Actions
mrzerocore-1.6.1.tar.gz 75.9 MB Without provenance Details for mrzerocore-1.6.1.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for mrzerocore 1.6.1
File Actions
mrzerocore-1.6.1-cp37-abi3-win_amd64.whl CPython 3.7 abi3 Windows x86-64 Details for mrzerocore-1.6.1-cp37-abi3-win_amd64.whl
mrzerocore-1.6.1-cp37-abi3-win32.whl CPython 3.7 abi3 Windows x86-32 Details for mrzerocore-1.6.1-cp37-abi3-win32.whl
mrzerocore-1.6.1-cp37-abi3-musllinux_1_2_x86_64.whl CPython 3.7 abi3 Linux musl 1.2+ x86-64 Details for mrzerocore-1.6.1-cp37-abi3-musllinux_1_2_x86_64.whl
mrzerocore-1.6.1-cp37-abi3-musllinux_1_2_i686.whl CPython 3.7 abi3 Linux musl 1.2+ x86-32 Details for mrzerocore-1.6.1-cp37-abi3-musllinux_1_2_i686.whl
mrzerocore-1.6.1-cp37-abi3-musllinux_1_2_armv7l.whl CPython 3.7 abi3 Linux musl 1.2+ ARMv7l Details for mrzerocore-1.6.1-cp37-abi3-musllinux_1_2_armv7l.whl
mrzerocore-1.6.1-cp37-abi3-musllinux_1_2_aarch64.whl CPython 3.7 abi3 Linux musl 1.2+ ARM64 Details for mrzerocore-1.6.1-cp37-abi3-musllinux_1_2_aarch64.whl
mrzerocore-1.6.1-cp37-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.7 abi3 Linux glibc 2.17+ x86-64 Details for mrzerocore-1.6.1-cp37-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
mrzerocore-1.6.1-cp37-abi3-manylinux2014_s390x.manylinux_2_17_s390x.whl CPython 3.7 abi3 Linux glibc 2.17+ IBM System/390x Details for mrzerocore-1.6.1-cp37-abi3-manylinux2014_s390x.manylinux_2_17_s390x.whl
mrzerocore-1.6.1-cp37-abi3-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl CPython 3.7 abi3 Linux glibc 2.17+ PowerPC 64-le Details for mrzerocore-1.6.1-cp37-abi3-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl
mrzerocore-1.6.1-cp37-abi3-manylinux2014_armv7l.manylinux_2_17_armv7l.whl CPython 3.7 abi3 Linux glibc 2.17+ ARMv7l Details for mrzerocore-1.6.1-cp37-abi3-manylinux2014_armv7l.manylinux_2_17_armv7l.whl
mrzerocore-1.6.1-cp37-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl CPython 3.7 abi3 Linux glibc 2.17+ ARM64 Details for mrzerocore-1.6.1-cp37-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
mrzerocore-1.6.1-cp37-abi3-manylinux1_i686.manylinux_2_5_i686.whl CPython 3.7 abi3 Linux glibc 2.5+ x86-32 Details for mrzerocore-1.6.1-cp37-abi3-manylinux1_i686.manylinux_2_5_i686.whl
mrzerocore-1.6.1-cp37-abi3-macosx_11_0_arm64.whl CPython 3.7 abi3 macOS 11.0+ ARM64 Details for mrzerocore-1.6.1-cp37-abi3-macosx_11_0_arm64.whl
mrzerocore-1.6.1-cp37-abi3-macosx_10_12_x86_64.whl CPython 3.7 abi3 macOS 10.12+ x86-64 Details for mrzerocore-1.6.1-cp37-abi3-macosx_10_12_x86_64.whl

Total release size: 84.8 MB

Release files / mrzerocore-1.6.1.tar.gz

Download URL mrzerocore-1.6.1.tar.gz
Size 75.9 MB
Tags Source
SHA-256 checksum
How to use checksums
edb5a72fbd787ceab48a68ea3365bab6e4d9fea0e60cc03a656a93eac87b2fa0
BLAKE2b-256 checksum
How to use checksums
d03fc8ff566b02ab7ee25a883ca5ba05a57d180789ce45df9f175e3b33241e21
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / mrzerocore-1.6.1-cp37-abi3-win_amd64.whl

Download URL mrzerocore-1.6.1-cp37-abi3-win_amd64.whl
Size 489.0 kB
Tags CPython 3.7 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
c9e3215ed1975a0c8ab7af3496979329448c3f9d209bd9c97aaa8cc1d1d92720
BLAKE2b-256 checksum
How to use checksums
99fe05c6f02776b92cb871e07f657830c078f6127af122ec01255799bab74407
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / mrzerocore-1.6.1-cp37-abi3-win32.whl

Download URL mrzerocore-1.6.1-cp37-abi3-win32.whl
Size 473.7 kB
Tags CPython 3.7 Windows x86-32 abi3
SHA-256 checksum
How to use checksums
e01c5c10d08e7d32bad4a0b6c49e296ce944510cebb2f54e2e7e89acfbe9d237
BLAKE2b-256 checksum
How to use checksums
a8809562bc53925a43c065776dcf3888601b729d2062045802934c43c20cadb1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / mrzerocore-1.6.1-cp37-abi3-musllinux_1_2_x86_64.whl

Download URL mrzerocore-1.6.1-cp37-abi3-musllinux_1_2_x86_64.whl
Size 785.0 kB
Tags CPython 3.7 Linux musl 1.2+ x86-64 abi3
SHA-256 checksum
How to use checksums
67df298300ffc76a185e365629246d20f467c35a60930fe753810c51c15f816c
BLAKE2b-256 checksum
How to use checksums
164556ebacd2956d4353ccbb1ebdf19f39197af1c952306b242ed292d4e07ffd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / mrzerocore-1.6.1-cp37-abi3-musllinux_1_2_i686.whl

Download URL mrzerocore-1.6.1-cp37-abi3-musllinux_1_2_i686.whl
Size 825.7 kB
Tags CPython 3.7 Linux musl 1.2+ x86-32 abi3
SHA-256 checksum
How to use checksums
a437189e8ea6c81fe48d236a20345c00b9921ddf0376c84d40cc8819b5b825c6
BLAKE2b-256 checksum
How to use checksums
2d61309b8243192e53257695b8a2c9deed509c40f850312f3421acc162649802
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / mrzerocore-1.6.1-cp37-abi3-musllinux_1_2_armv7l.whl

Download URL mrzerocore-1.6.1-cp37-abi3-musllinux_1_2_armv7l.whl
Size 837.6 kB
Tags CPython 3.7 Linux musl 1.2+ ARMv7l abi3
SHA-256 checksum
How to use checksums
de117e2ca80e1701d4c67aeab987878e2c3d1cbbb929ecd4e0ace6acee25b9aa
BLAKE2b-256 checksum
How to use checksums
13c59e5fa0d7ae675714dae0f33a7cd8e8cc96a1e7a73fb235029e4c91f88068
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / mrzerocore-1.6.1-cp37-abi3-musllinux_1_2_aarch64.whl

Download URL mrzerocore-1.6.1-cp37-abi3-musllinux_1_2_aarch64.whl
Size 731.5 kB
Tags CPython 3.7 Linux musl 1.2+ ARM64 abi3
SHA-256 checksum
How to use checksums
6b2f2f331a9751eb8fbddcccd15689b781ca309533d74673df641eae98d4df0e
BLAKE2b-256 checksum
How to use checksums
94aef124623db5a6f22f38ee923a15e6225a3856badcba40758fd35263d91632
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / mrzerocore-1.6.1-cp37-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL mrzerocore-1.6.1-cp37-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 577.9 kB
Tags CPython 3.7 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
c84d26cce1297dfe64b43d6f1707c917e3fc93ea74d3f9fda7c7a80eedfdc8da
BLAKE2b-256 checksum
How to use checksums
413b6f534cb3b1bc34b6289e2afce8095bae0759d3df1050df9165a54b73e472
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / mrzerocore-1.6.1-cp37-abi3-manylinux2014_s390x.manylinux_2_17_s390x.whl

Download URL mrzerocore-1.6.1-cp37-abi3-manylinux2014_s390x.manylinux_2_17_s390x.whl
Size 647.8 kB
Tags CPython 3.7 Linux glibc 2.17+ IBM System/390x abi3
SHA-256 checksum
How to use checksums
10a95db6f626c6bcf91d5ea99bdff825a6e5c29f554598048ccffd7d137cc78e
BLAKE2b-256 checksum
How to use checksums
797b155fb921ece45471c10d64440719648c2cb6bc2bd10ebd5fd0bb1861e600
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / mrzerocore-1.6.1-cp37-abi3-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl

Download URL mrzerocore-1.6.1-cp37-abi3-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl
Size 684.8 kB
Tags CPython 3.7 Linux glibc 2.17+ PowerPC 64-le abi3
SHA-256 checksum
How to use checksums
b6003f9dc14b7a8aea35ffd564ed6380a4ee12768a1db28b8be470f95a2c9cf9
BLAKE2b-256 checksum
How to use checksums
244facb684023520b343defbb463f096149ba39adbed6e52e4a1b4531b3a43e0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / mrzerocore-1.6.1-cp37-abi3-manylinux2014_armv7l.manylinux_2_17_armv7l.whl

Download URL mrzerocore-1.6.1-cp37-abi3-manylinux2014_armv7l.manylinux_2_17_armv7l.whl
Size 560.4 kB
Tags CPython 3.7 Linux glibc 2.17+ ARMv7l abi3
SHA-256 checksum
How to use checksums
3a3463e2840a444aa4830983205208663afb80d8ab91743038a1a924abcf1cda
BLAKE2b-256 checksum
How to use checksums
d4a37fb28a583ac8b0f9653a230ca67cab06ebe3b2ba27983ce9f546210c6292
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / mrzerocore-1.6.1-cp37-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL mrzerocore-1.6.1-cp37-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 552.7 kB
Tags CPython 3.7 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
35ba08a7c5186a2a6f55b5ae44e9461bb9df788eb2afcb6a92550198808826ae
BLAKE2b-256 checksum
How to use checksums
16a09574c24915f38da2f86750c547af2e5941c98483daef0b9924bbb3db573c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / mrzerocore-1.6.1-cp37-abi3-manylinux1_i686.manylinux_2_5_i686.whl

Download URL mrzerocore-1.6.1-cp37-abi3-manylinux1_i686.manylinux_2_5_i686.whl
Size 620.1 kB
Tags CPython 3.7 Linux glibc 2.5+ x86-32 abi3
SHA-256 checksum
How to use checksums
ae05d5add7166dd5ab080759fa87dd29b8641686759f8e5e38f8580ad98249a1
BLAKE2b-256 checksum
How to use checksums
cf6111457821571bec28ad80fea8eb7268a08ee979a4d164433d1e83aa210e18
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / mrzerocore-1.6.1-cp37-abi3-macosx_11_0_arm64.whl

Download URL mrzerocore-1.6.1-cp37-abi3-macosx_11_0_arm64.whl
Size 532.8 kB
Tags CPython 3.7 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
af62ac37901bec46711133e319e26a9ce0f31a39b66b73b9ef80bebf3c1e6f0e
BLAKE2b-256 checksum
How to use checksums
b59ad8af95f44dc86e9dde465b65cc23f845148e48aed97961d2dd9e457df105
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / mrzerocore-1.6.1-cp37-abi3-macosx_10_12_x86_64.whl

Download URL mrzerocore-1.6.1-cp37-abi3-macosx_10_12_x86_64.whl
Size 538.9 kB
Tags CPython 3.7 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
0e7153c8d706b11e53e070ec9f5427e7753a08c7cd1f5a7b7c923b51d625a817
BLAKE2b-256 checksum
How to use checksums
736f6fd247690ed094f082597adbe835332aec56940d45cbba95a75307716922
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for mrzerocore 1.6.1

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

1.6.1 This release

15 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