Skip to main content

pyspmac

usage

Python 3.8 or higher is required.

# install pyspmac
python3 -m pip install .

# run a sample
cd sample/multiple
spmac input.toml

parameters

The names of parameters are case-insensitive.

  • output: str
    • Output directory name (default: output)
  • num_flavor: int
    • Number of flavors (orbitals)
  • filein_g: str
    • Filename storing G(τ)
    • When num_flavor > 1, "{filein_g}.{a}{b}" are read for G{ab}, where a,b = 0,1,...,num_flavor-1
  • column: int
    • Index of column storing G(τ) (0-origin)
  • beta: float
    • Inverse temperature β
  • max_omega: float
    • Upper bound of ω
  • min_omega: float
    • Lower bound of ω
  • num_omega: int
    • Number of ωs
  • nonnegative: bool
    • Impose non-negativity (single flavor) or semi-positive definiteness (multiple flavor) (default:true)
  • sumrule: bool
    • Impose sum-rule (default: true)
  • min_sv: float
    • Cutoff in singular value (default: 1e-10)
  • max_iteration: int
    • Maximum number of iterations of ADMM (default: 1000)
  • optimize: bool
    • Optimize λ by the elbow method (default: false)
  • max_loglambda: float
    • Maximum value of log10(λ)
    • If optimize
  • min_loglambda: float
    • Minimum value of log10(λ)
    • If optimize
  • loglambda: float
    • log10(λ)
    • If not optimize

small test

Run pytest at the root directory:

python3 -m pytest

Authors

  • Yuichi Motoyama
  • Hiroshi Shinaoka

License

PySpMAC is distributed under the Mozilla Public License 2.0

Metadata

Release files for pySpMAC 0.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 pySpMAC 0.1
File Size Uploaded
pyspmac-0.1.tar.gz 16.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pySpMAC 0.1
File Interpreter ABI Platform
pyspmac-0.1-py3-none-any.whl Python 3 none any Details

Total release size: 38.3 kB

Release files / pyspmac-0.1.tar.gz

Download URL pyspmac-0.1.tar.gz
Size 16.0 kB
Tags Source
SHA-256 checksum
How to use checksums
f0f34c2b28b375f7be7147edaa062c11689084547f41609ba9c5ff838a4ed9d6
BLAKE2b-256 checksum
How to use checksums
e3e9ef4d735a28418c667dac7a7cf2bc3c1b71269a52b7991676d933965636a8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.9

Release files / pyspmac-0.1-py3-none-any.whl

Download URL pyspmac-0.1-py3-none-any.whl
Size 22.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
95b759aa4aa3ade09790d846de04962de36a6155905e7565830dd8e213382f2f
BLAKE2b-256 checksum
How to use checksums
fc3d8ac41eb6a0d26eeab93e19265c344751379253b7ef5dbeadcf45e4327051
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.9

Release history Release notifications | RSS feed

This release

0.1 This release

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