Skip to main content

A fast, differentiable, and extensible CMB code

Project description

ABCMB

License: MIT Run Tests

Autodifferentiable Boltzmann solver for the CMB (ABCMB) is a Python+JAX package for differentiable computation of the Cosmic Microwave Background. ABCMB is complete to linear order in $\Lambda\rm{CDM}$ cosmology. It computes the matter and CMB power spectra and includes effects like lensing, massive neutrinos, and a state-of-the-art treatment of the physics of recombination through the companion code HyRex.

Installation

We recommend installing ABCMB in a clean conda environment. After downloading and unpacking the code, in the code directory run

conda create -n ABCMB
conda activate ABCMB
pip install -U -r requirements.txt

optionally specifying your preferred python version after the environment name. Note that this will automatically attempt to install JAX for CPU; to install for GPU, refer to the JAX documentation for a quick JAX installation guide.

Examples

We have included several pedagogical jupyter notebooks to walk you through how to get started with ABCMB in our example_notebooks folder. We suggest you start with ABCMB_basics to get a sense of how to run the code. If you'd like to add new physics to ABCMB, check out ABCMB_Fluids. If you'd like to run ABCMB with the Big Bang Nucleosynthesis (BBN) code LINX to do BBN+CMB joint analyses, check out ABCMB_with_LINX.

Issues

Please feel free to open an issue if something is amiss in ABCMB!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

abcmb-0.1.2.tar.gz (31.9 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

abcmb-0.1.2-py3-none-any.whl (32.9 MB view details)

Uploaded Python 3

File details

Details for the file abcmb-0.1.2.tar.gz.

File metadata

  • Download URL: abcmb-0.1.2.tar.gz
  • Upload date:
  • Size: 31.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for abcmb-0.1.2.tar.gz
Algorithm Hash digest
SHA256 c12e2111af8284f199a6221ced1afcf6e237b0bc6a9d46e6b2838261ce687a3d
MD5 9ccaea4d0b6efe371afa9c270fed88a6
BLAKE2b-256 3965283e97829b3a4af4fd21f748b00525277dd60cd21e558f2822b0c34c5ddb

See more details on using hashes here.

File details

Details for the file abcmb-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: abcmb-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 32.9 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for abcmb-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4ca7ad161d972c3e472b6062e2d86110cbbf724c28edd7d7e73f4c6d90294bac
MD5 e15c6fd1c2f5815c724900469c79fbb8
BLAKE2b-256 e2082aa8e9a8b4e56482e5c8904c69789dacf972f55fc84933a6646ba9a1e1ca

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page