Skip to main content

spmac

Project description

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

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

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

Source Distribution

pyspmac-0.1.tar.gz (16.0 kB view details)

Uploaded Source

Built Distribution

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

pyspmac-0.1-py3-none-any.whl (22.2 kB view details)

Uploaded Python 3

File details

Details for the file pyspmac-0.1.tar.gz.

File metadata

  • Download URL: pyspmac-0.1.tar.gz
  • Upload date:
  • Size: 16.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for pyspmac-0.1.tar.gz
Algorithm Hash digest
SHA256 f0f34c2b28b375f7be7147edaa062c11689084547f41609ba9c5ff838a4ed9d6
MD5 70d7dd1097bd70236f0a4f712860180e
BLAKE2b-256 e3e9ef4d735a28418c667dac7a7cf2bc3c1b71269a52b7991676d933965636a8

See more details on using hashes here.

File details

Details for the file pyspmac-0.1-py3-none-any.whl.

File metadata

  • Download URL: pyspmac-0.1-py3-none-any.whl
  • Upload date:
  • Size: 22.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for pyspmac-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 95b759aa4aa3ade09790d846de04962de36a6155905e7565830dd8e213382f2f
MD5 2309726938f233396e15566d8dc09d13
BLAKE2b-256 fc3d8ac41eb6a0d26eeab93e19265c344751379253b7ef5dbeadcf45e4327051

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