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.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 ElecSolver 2.2.1
File Size Uploaded Provenance
elecsolver-2.2.1.tar.gz 227.3 kB With provenance Details

Built distribution (wheel)

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

Total release size: 257.0 kB

Release files / elecsolver-2.2.1.tar.gz

Download URL elecsolver-2.2.1.tar.gz
Size 227.3 kB
Tags Source
SHA-256 checksum
How to use checksums
49c2bc6d30b2bc969012e155c101e43134a0a74652458e2aff658f25df627c7d
BLAKE2b-256 checksum
How to use checksums
3e51674e000157168386353bc348b34230f905a47d5f4575d316cb7be98070e2
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 Oct 20, 2026.

Transparency log

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

Download URL elecsolver-2.2.1-py3-none-any.whl
Size 29.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3048542b4d414ea7002d32172c7538270b1a0792132582a6ef498d9d9c2f5da7
BLAKE2b-256 checksum
How to use checksums
713c195226f3ee7fbfc4e7d815c6eb2919a8bde0c919dcb23497636bf6578cf7
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 Oct 20, 2026.

Transparency log

Security for ElecSolver 2.2.1

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.1.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 Oct 20, 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