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.1.0

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

Built distributions (wheels)

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

Total release size: 84.6 MB

Release files / mrzerocore-1.1.0.tar.gz

Download URL mrzerocore-1.1.0.tar.gz
Size 75.9 MB
Tags Source
SHA-256 checksum
How to use checksums
c5ca685194435bc0dda0029720746af66328dd1fb4b4c2c9c17cb02dccb17a42
BLAKE2b-256 checksum
How to use checksums
9b0325888e68c238f02574c04c0b4701906ef35435d95e06b25027830e62ebe8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.18 {"installer":{"name":"uv","version":"0.12.18","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.1.0-cp37-abi3-win_amd64.whl

Download URL mrzerocore-1.1.0-cp37-abi3-win_amd64.whl
Size 477.6 kB
Tags CPython 3.7 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
374928a193eaac0148127a8c869ddd65ad395f43e814147c387c5eb9d2d4cfc0
BLAKE2b-256 checksum
How to use checksums
f0f5c27d66db2cd100fd37c574dbadbe026e763b0ce6b3c57cc9b15ef3389106
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.18 {"installer":{"name":"uv","version":"0.12.18","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.1.0-cp37-abi3-win32.whl

Download URL mrzerocore-1.1.0-cp37-abi3-win32.whl
Size 461.0 kB
Tags CPython 3.7 Windows x86-32 abi3
SHA-256 checksum
How to use checksums
d2ad4b9669799304bf49223b73fb5f3188d21211a1ef22012804d58727dddfed
BLAKE2b-256 checksum
How to use checksums
6d8a718eea9cffed1c2648ed7f79471999268cc67c06d01c92aacd83a7950cb0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.18 {"installer":{"name":"uv","version":"0.12.18","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.1.0-cp37-abi3-musllinux_1_2_x86_64.whl

Download URL mrzerocore-1.1.0-cp37-abi3-musllinux_1_2_x86_64.whl
Size 774.7 kB
Tags CPython 3.7 Linux musl 1.2+ x86-64 abi3
SHA-256 checksum
How to use checksums
bdf9c5d04a6169a9347315269d1410dfbd2aa379abe2820d74ce8c5a601db749
BLAKE2b-256 checksum
How to use checksums
bbbb9c967e30f26cbe24988eadd6330d401fd2a68f5da7ecbf08a3bddbf0a011
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.18 {"installer":{"name":"uv","version":"0.12.18","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.1.0-cp37-abi3-musllinux_1_2_i686.whl

Download URL mrzerocore-1.1.0-cp37-abi3-musllinux_1_2_i686.whl
Size 815.5 kB
Tags CPython 3.7 Linux musl 1.2+ x86-32 abi3
SHA-256 checksum
How to use checksums
0921304ff31e54c1b0a27ddf43b770e5bbc621ad81299e536c32fe124af2c4f5
BLAKE2b-256 checksum
How to use checksums
bc3ca58d46ea0a7664c47aad844a9e610ad148040dc3069f58c8f35b15522e3d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.18 {"installer":{"name":"uv","version":"0.12.18","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.1.0-cp37-abi3-musllinux_1_2_armv7l.whl

Download URL mrzerocore-1.1.0-cp37-abi3-musllinux_1_2_armv7l.whl
Size 825.4 kB
Tags CPython 3.7 Linux musl 1.2+ ARMv7l abi3
SHA-256 checksum
How to use checksums
01701d00c3daba50ba5512a2b2a16ba41f7e67dc31193de5dc5af25cec4c27a3
BLAKE2b-256 checksum
How to use checksums
a5e13f83f82b9f0640cf42819cc6c28ced98148325ab1130b5195ab8b93a6509
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.18 {"installer":{"name":"uv","version":"0.12.18","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.1.0-cp37-abi3-musllinux_1_2_aarch64.whl

Download URL mrzerocore-1.1.0-cp37-abi3-musllinux_1_2_aarch64.whl
Size 719.1 kB
Tags CPython 3.7 Linux musl 1.2+ ARM64 abi3
SHA-256 checksum
How to use checksums
2893ca42eb55aaae85c2c170c6df872b754e5fcb45a4a175b8a3995b14fb8173
BLAKE2b-256 checksum
How to use checksums
f746a65df6ef94a9c2475c77a98d51dd68cd9d61f3e6bf51803d7c6c0e09d953
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.18 {"installer":{"name":"uv","version":"0.12.18","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.1.0-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL mrzerocore-1.1.0-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 565.7 kB
Tags CPython 3.7 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
70997603206a76b06dd837d9a28fc0204152d5824bffb1799f630cd55cffbfee
BLAKE2b-256 checksum
How to use checksums
3659d7f51d138c602300a9c3aececd2027cd905c10ac846c040e90eb81713bdf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.18 {"installer":{"name":"uv","version":"0.12.18","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.1.0-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl

Download URL mrzerocore-1.1.0-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl
Size 623.1 kB
Tags CPython 3.7 Linux glibc 2.17+ IBM System/390x abi3
SHA-256 checksum
How to use checksums
a0b22605096c12b9cd77f52516491b36a4125e0ed0dcbb545f5502f9596f2949
BLAKE2b-256 checksum
How to use checksums
a5d9aa1c86da77ba51e7906dcb5e54cdb2e6dc4e4aa1e89dfe989d811eae2660
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.18 {"installer":{"name":"uv","version":"0.12.18","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.1.0-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl

Download URL mrzerocore-1.1.0-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Size 674.9 kB
Tags CPython 3.7 Linux glibc 2.17+ PowerPC 64-le abi3
SHA-256 checksum
How to use checksums
7fd009a6aaf106546a7f5544334a0cbed9a2dac787754f97baa51118f1159aae
BLAKE2b-256 checksum
How to use checksums
42589116740851d8f28c09bcb7784b5d75c5ccebfe1f3f406f63954dbe1d053f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.18 {"installer":{"name":"uv","version":"0.12.18","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.1.0-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl

Download URL mrzerocore-1.1.0-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Size 547.7 kB
Tags CPython 3.7 Linux glibc 2.17+ ARMv7l abi3
SHA-256 checksum
How to use checksums
d87d7785d638714490ab9bd47332ffe9204a14aa76426dafde0ab2f8bd2b6c10
BLAKE2b-256 checksum
How to use checksums
7f02d8a9f1abb83e4ddecded4e023f8cbcf311d8ae8d2837482c800b5590bf96
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.18 {"installer":{"name":"uv","version":"0.12.18","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.1.0-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL mrzerocore-1.1.0-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 540.7 kB
Tags CPython 3.7 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
d03c5a6ab3b0efb66ec1fa3acb017e2578fea2e76c0c8c430684286451e02c5f
BLAKE2b-256 checksum
How to use checksums
b04b11bf44decf410df20a049b2afa1ed2cc4a5189e71062d70784bcb4d7a23c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.18 {"installer":{"name":"uv","version":"0.12.18","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.1.0-cp37-abi3-manylinux_2_5_i686.manylinux1_i686.whl

Download URL mrzerocore-1.1.0-cp37-abi3-manylinux_2_5_i686.manylinux1_i686.whl
Size 608.8 kB
Tags CPython 3.7 Linux glibc 2.5+ x86-32 abi3
SHA-256 checksum
How to use checksums
337783929df0c7406ac8a385c388a6cf3866510098e90736b266b830a4dc8a3f
BLAKE2b-256 checksum
How to use checksums
2d6ef94f11fac1c059b7db421802dc826aecd3ab27014c3ed0342e43af35aa84
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.18 {"installer":{"name":"uv","version":"0.12.18","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.1.0-cp37-abi3-macosx_11_0_arm64.whl

Download URL mrzerocore-1.1.0-cp37-abi3-macosx_11_0_arm64.whl
Size 518.9 kB
Tags CPython 3.7 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
995b71434b2c1d627f62beb7c9c7ff10480d12c0d823e592a7522a7044ea699b
BLAKE2b-256 checksum
How to use checksums
3c25268b8e5b376995bfe8c90c5ff84161fbfc29172b318693eb387dbb8f3463
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.18 {"installer":{"name":"uv","version":"0.12.18","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.1.0-cp37-abi3-macosx_10_12_x86_64.whl

Download URL mrzerocore-1.1.0-cp37-abi3-macosx_10_12_x86_64.whl
Size 531.4 kB
Tags CPython 3.7 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
83cb54d7640006b01ef6fffbee160c2f02354b2c7d3d2391b23572bd02a042aa
BLAKE2b-256 checksum
How to use checksums
396168481556b2638a05aafbe89e44696a9e3ea2ce8f1abde57d0572b4914877
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.18 {"installer":{"name":"uv","version":"0.12.18","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

This release

1.1.0 This release

15 release files

1.0.9

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