Skip to main content

qmfcalc

Quadrupole mass filter calculation utilities.

Python

The Python package builds a native extension with pybind11:

python -m pip install .

Python 3.12 and 3.13 are supported targets.

or directly from a Git checkout:

python -m pip install git+https://github.com/<owner>/<repo>.git

Use it from Python:

import qmfcalc

result = qmfcalc.calculate_voltages(
    r0_mm=15.0,
    target_m_over_q_amu_per_z=250.0,
    resolution=250.0,
    rf_frequency_mhz=1.0,
)

print(result["rf_voltage_v"], result["dc_voltage_v"])

inverse = qmfcalc.calculate_mass_resolution(
    r0_mm=15.0,
    rf_voltage_v=result["rf_voltage_v"],
    dc_voltage_v=result["dc_voltage_v"],
    rf_frequency_mhz=1.0,
)

print(inverse["m_over_q_amu_per_z"], inverse["resolution"])

rf_voltage_v is the per-rod peak-to-peak RF voltage. dc_voltage_v is the pole-to-pole DC voltage. calculate_mass_resolution uses the same voltage conventions and returns the transmitted mass-to-charge value in amu/Z plus the resolving power.

The GitHub Actions workflow in .github/workflows/python-package.yml builds and tests Python 3.12 and 3.13 Linux and Windows wheels on pushes and pull requests.

PyPI release

Configure a PyPI pending trusted publisher with:

  • PyPI project name: qmfcalc
  • Owner: kenji0923
  • Repository: qmfcalc
  • Workflow name: publish-pypi.yml
  • Environment name: pypi

Then publish a GitHub Release from a version tag, for example:

git tag v0.1.2
git push origin v0.1.2

The .github/workflows/publish-pypi.yml workflow builds the Python 3.12 and 3.13 Linux and Windows wheels, builds the source distribution, and publishes them to PyPI.

Metadata

Release files for qmfcalc 0.1.2

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

Source distribution (sdist)

Source distribution for qmfcalc 0.1.2
File Size Uploaded Provenance Actions
qmfcalc-0.1.2.tar.gz 17.8 kB With provenance Details for qmfcalc-0.1.2.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for qmfcalc 0.1.2
File Actions
qmfcalc-0.1.2-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details for qmfcalc-0.1.2-cp313-cp313-win_amd64.whl
qmfcalc-0.1.2-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.28+ x86-64, Linux glibc 2.24+ x86-64 Details for qmfcalc-0.1.2-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
qmfcalc-0.1.2-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details for qmfcalc-0.1.2-cp312-cp312-win_amd64.whl
qmfcalc-0.1.2-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.24+ x86-64, Linux glibc 2.28+ x86-64 Details for qmfcalc-0.1.2-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl

Total release size: 700.0 kB

Release files / qmfcalc-0.1.2.tar.gz

Download URL qmfcalc-0.1.2.tar.gz
Size 17.8 kB
Tags Source
SHA-256 checksum
How to use checksums
8ed30c50909af67306b4dba3e7b1977fcf7cecbe28b824c229f9eec79a12ae99
BLAKE2b-256 checksum
How to use checksums
b55b4144a230dc060218617c469fa22782c5f9ae5a9ccdca26ce71fefe42ea48
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 3, 2026.

Transparency log

Release files / qmfcalc-0.1.2-cp313-cp313-win_amd64.whl

Download URL qmfcalc-0.1.2-cp313-cp313-win_amd64.whl
Size 264.6 kB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
a3ac85ff9370998277928374d5abdbbccd7beea23df420f05831da074fc991c6
BLAKE2b-256 checksum
How to use checksums
e1dd1e51f89873ee1d0bc6ac1fdfc21b79248540d3bbb14b3c18aafec75601f2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 3, 2026.

Transparency log

Release files / qmfcalc-0.1.2-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl

Download URL qmfcalc-0.1.2-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Size 76.5 kB
Tags CPython 3.13 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
0c82bbcd1fd474fac0670163607853a7cc7a15c3b12de948ce1714ff3e118dc5
BLAKE2b-256 checksum
How to use checksums
1eec4a1c5becd4251e78d79a7893f1d643558ceb7e1c6b000367e94d3c7fa8dd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 3, 2026.

Transparency log

Release files / qmfcalc-0.1.2-cp312-cp312-win_amd64.whl

Download URL qmfcalc-0.1.2-cp312-cp312-win_amd64.whl
Size 264.5 kB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
477ffb3c5a75e23c8845daa5be2297003655d8005d1254d4715c923d931fd27f
BLAKE2b-256 checksum
How to use checksums
965906ffd8624b210333bf1c075ee93cb83396e8bf945280a3772a605e37be2e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 3, 2026.

Transparency log

Release files / qmfcalc-0.1.2-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl

Download URL qmfcalc-0.1.2-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Size 76.5 kB
Tags CPython 3.12 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
a8392ba1222ef6b0db951f71c1f34496253ff05a6217618278b7a003f1faf62c
BLAKE2b-256 checksum
How to use checksums
bffeadc547d225077a23a463e16a6b99c8bb1d7776c497b7df3e948cd29ee6c8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 3, 2026.

Transparency log

Security for qmfcalc 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.

Full provenance

All 5 files in this release have been uploaded with provenance metadata.

Select from 5 files

Attestation for qmfcalc-0.1.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 3, 2026.

Transparency log

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.

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