Spectre interace for Python written in hy.
This is mainly inteded as backend for machine learning implementations and not for humans.
After cloning
$ pip install .
from sphyctre import OpAnalyzer
pdk_path = f"some/path/to/pdk"
tb_path = f"some/path/to/test/bench"
op = OpAnalyzer(tb_path, pdk_path)
performance = op.simulate({"Wcm1": 1e-6, "Ld": 0.5e-6})
print(performance)
print(op.simulation-results)
For more, see examples/
.