SYCAN
SYCAN (SYmbolic Circuit ANalysis) is a Python package for symbolic circuit simulation built on SymPy. It provides closed-form DC, AC, noise, transfer-function, pole–zero, and sensitivity analyses, plus automatic schematic drawing and an in-browser REPL.
Install
Requires Python ≥ 3.11.
pip install sycan
Or with uv:
uv add sycan
For a faster CAS backend (optional):
pip install "sycan[symengine]"
Then opt in by setting SYCAN_CAS_BACKEND=symengine before importing
sycan. The symengine backend covers ~95 % of the test suite (10 tests
skipped on representation / API divergences) and is 7–8× faster than
SymPy on AC and noise solves and ~30 % faster on headroom analysis — see
docs/BE_BENCHMARK.md and
docs/BE_PORT_STATUS.md.
Quick start
from sycan import cas, Circuit, solve_ac
from sycan.components.basic import Resistor, Capacitor, VoltageSource
R, C = cas.symbols("R C", positive=True)
Vin = cas.Symbol("Vin")
c = Circuit("RC low-pass")
c.add(VoltageSource("V1", "in", "0", value=0, ac_value=Vin))
c.add(Resistor("R1", "in", "out", R))
c.add(Capacitor("C1", "out", "0", C))
sol = solve_ac(c)
H = sol[cas.Symbol("V(out)")] / Vin
print(cas.simplify(H)) # 1 / (C*R*s + 1)
Try it without installing
The live REPL runs SYCAN entirely in the browser via Pyodide — no install needed. The page ships preset examples for filters, amplifiers, voltage references, and S-parameter transmission lines.
Documentation
Full docs (API reference, tutorial, autodraw pipeline) live at https://al-255.github.io/sycan/.
Analysis modes
| Solver | Purpose |
|---|---|
solve_dc / solve_dc_sweep |
DC operating point, parameter sweeps |
solve_ac |
Small-signal frequency response |
solve_tf |
Transfer functions between arbitrary nodes |
solve_impedance |
Port impedance with auto termination |
solve_noise |
Output-referred noise PSD with per-source breakdown |
solve_pz |
Pole–zero extraction |
solve_sensitivity |
Component-level sensitivity analysis |
solve_headroom |
DC headroom analysis |
autodraw |
Automatic schematic SVG rendering |
Development
git clone https://github.com/AL-255/sycan
cd sycan
uv sync --dev
./run_tests.sh
License
GPL v2 — see LICENSE.
Credits
The project heavily references the work of ahkab and ngSpice. Kudos to them for their contributions.
Metadata
Release files for sycan 0.1.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| sycan-0.1.8.tar.gz | 157.6 kB | Without provenance | Details for sycan-0.1.8.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sycan-0.1.8-py3-none-any.whl | Python 3 | none | any | Details for sycan-0.1.8-py3-none-any.whl |
Total release size: 351.0 kB
Release files / sycan-0.1.8.tar.gz
| Download URL | sycan-0.1.8.tar.gz |
|---|---|
| Size | 157.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9fad557b0f444ef2f806042d627e47129752f3601dc1c29ba1d380075974cf06
|
|
BLAKE2b-256 checksum How to use checksums |
a5e2f5299a3059b64b1fa37a55e0e2ac9e3a88ad5a2107a3b6223765c5708285
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.9
|
Release files / sycan-0.1.8-py3-none-any.whl
| Download URL | sycan-0.1.8-py3-none-any.whl |
|---|---|
| Size | 193.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
548115637d29d246fea4d012fa801ddb80c99cd19310aca275a480630ee33485
|
|
BLAKE2b-256 checksum How to use checksums |
f8bfca7e2f1343243b7fe189faa132cd943f4e062eb88d085424ed89bbcae7cc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.9
|
Security for sycan 0.1.8
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.