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

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, scipy and networkx installed in your environment

Metadata

Release files for ElecSolver 2.1.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.1.0
File Size Uploaded Provenance Actions
elecsolver-2.1.0.tar.gz 219.4 kB With provenance Details for elecsolver-2.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 245.0 kB

Release files / elecsolver-2.1.0.tar.gz

Download URL elecsolver-2.1.0.tar.gz
Size 219.4 kB
Tags Source
SHA-256 checksum
How to use checksums
17a33dd4d6f8551904baa55c840d561cff00dc046b4bf7e11bad7e69722c4faa
BLAKE2b-256 checksum
How to use checksums
8f18d0a0b933e130b498f20e8393d7efee26e7df59e100342e0ed734055c4921
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Jun 15, 2026.

Transparency log

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

Download URL elecsolver-2.1.0-py3-none-any.whl
Size 25.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5b7eee5b1d54a58050f62ac534c2491281be4897c1726ba28a1665cc0e8e70da
BLAKE2b-256 checksum
How to use checksums
3c303742d5fcc0aefeea69b9772bd449362ae96c981dbd2388a96b39a197da66
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Jun 15, 2026.

Transparency log

Security for ElecSolver 2.1.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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for elecsolver-2.1.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 Jun 15, 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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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