Skip to main content

ElecSolver

Overview

ElecSolver formalizes electric systems as linear problems, suitable for both temporal and frequency-domain studies. It focuses on constructing the linear system representation, leaving the actual numerical resolution to the user.

This repository is not a general-purpose electrical system solver. Instead, it acts as a bridge between:

  • The graph-based description of an electric network
  • The corresponding sparse linear system to solve

In a very simple way, ElecSolver takes as an input the Resistances $R$, Capacitances $C$, Inductances $L$, Mutuals $M$, Current sources $I$ and Voltage sources $V$ along with the connectivity graph $G$ of the system and outputs the linear system: matrix $S$ and vector $b$ to solve in order to get the solution of the electric problem.

$$f_{\text{ElecSolver}}(R,C,L,M,I,V,G) = (S,b)$$

It is then up to the user to choose the solver they want for solving the system $Sx=b$ and to manage the time iterations if needed for temporal problems.

The main goal of ElecSolver is to provide a friendly Python interface for simulating and optimizing analog electric systems. While suitable for small circuit simulations, its strength lies in its scalability: it is able to build linear systems with millions of nodes and components.

Documentation

The documentation is available in the docs folder and can be built using zensical. You can also view the documentation online at https://williampiat3.github.io/ElecSolver/.

How to install

The recommended way of installing ElecSolver is spack since spack provides a MUMPS solver (and its python bindings python-mumps) optimized for your platform.

spack install py-elecsolver py-python-mumps

Using pip

ElecSolver is distributed on PyPI and can be installed using pip or conda/mamba.

pip install ElecSolver

Using conda/mamba

ElecSolver is also available on conda-forge and can be installed using conda or mamba:

conda install elecsolver

For solving linear systems, we advise using MUMPS through python-mumps, available for Linux, macOS, and Windows. It can be installed via conda:

conda install python-mumps

From source

You can also install ElecSolver from source by cloning the repository and running:

pip install .

you will need to have numpy and scipy installed in your environment

Metadata

Release files for ElecSolver 2.2.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 ElecSolver 2.2.0
File Size Uploaded Provenance
elecsolver-2.2.0.tar.gz 220.6 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for ElecSolver 2.2.0
File Interpreter ABI Platform
elecsolver-2.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 246.6 kB

Release files / elecsolver-2.2.0.tar.gz

Download URL elecsolver-2.2.0.tar.gz
Size 220.6 kB
Tags Source
SHA-256 checksum
How to use checksums
dbd5ba1ce2fff58e28a154a725a4a5574eb2bbb3cca07dda15fce0363eeedc1f
BLAKE2b-256 checksum
How to use checksums
b4960481a863295cf5599e0dbc4a05175edb794835cfee688d2b1488188527fd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 29, 2026.

Transparency log

Release files / elecsolver-2.2.0-py3-none-any.whl

Download URL elecsolver-2.2.0-py3-none-any.whl
Size 26.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
61febc0d7d206c5d782ed02a14ed6c5cac673b60856a79d5fdcd3b6b99fb2ff0
BLAKE2b-256 checksum
How to use checksums
df464d37de7518dd4fdaeddf116b3f6324b06143d66dfef08db81cb987a1f799
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 29, 2026.

Transparency log

Security for ElecSolver 2.2.0

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 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for elecsolver-2.2.0.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 Sep 29, 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.

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