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)

Release files for mrzerocore 1.0.9

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.0.9
File Size Uploaded
mrzerocore-1.0.9.tar.gz 75.9 MB Details

Built distributions (wheels)

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

Total release size: 84.5 MB

Release files / mrzerocore-1.0.9.tar.gz

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

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

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

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

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

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

Download URL mrzerocore-1.0.9-cp37-abi3-musllinux_1_2_x86_64.whl
Size 772.1 kB
Tags CPython 3.7 Linux musl 1.2+ x86-64 abi3
SHA-256 checksum
How to use checksums
5c824f76c72c0a13bbafbc21748c4fd294775950f32d3c724a6d319f97757b64
BLAKE2b-256 checksum
How to use checksums
31e25cfe37aeb57b2e7645e406378e128d2d217b6d6d837b1b144d9cedf72922
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.17 {"installer":{"name":"uv","version":"0.12.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Download URL mrzerocore-1.0.9-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 538.7 kB
Tags CPython 3.7 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
2adae309bf4f6bd660a3be3884cecfd21fa1e9e3114439a2d2bbd8a2c190b85c
BLAKE2b-256 checksum
How to use checksums
7d8365928ef5e508141629426032a32061d55c0e82ee28b6e035014d62be7d5f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.17 {"installer":{"name":"uv","version":"0.12.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

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

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

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

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

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

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

Release history Release notifications | RSS feed

1.1.1

15 release files

1.1.0

15 release files

This release

1.0.9 This release

15 release files

1.0.8

15 release files

1.0.7

15 release files

1.0.6

15 release files

1.0.5

15 release files

1.0.4

15 release files

1.0.3

15 release files

1.0.2

15 release files

0.4.9

15 release files

0.4.8

15 release files

0.4.6

31 release files

0.4.3

31 release files

0.4.2

25 release files

0.4.1

11 release files

0.4.0

11 release files

0.3.9

11 release files

0.3.5

11 release files

0.3.4

11 release files

0.3.3

11 release files

0.3.2

11 release files

0.3.1

11 release files

0.2.8

11 release files

0.2.7

11 release files

0.2.6

11 release files

0.2.5

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

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