m-labs / artiq

A leading-edge control system for quantum information experiments
https://m-labs.hk/artiq
GNU Lesser General Public License v3.0
437 stars 201 forks source link

kernel/ksupport: add linalg functions #2527

Open AR-PyT opened 3 months ago

AR-PyT commented 3 months ago

ARTIQ Pull Request

Description of Changes

Adds runtime implementation of np.linalg/sp.linalg functions (M-Labs/nac3#478 and M-Labs/artiq-zynq#309) Depends on #2526

Related Issue

Type of Changes

Type
:sparkles: New feature

Steps (Choose relevant, delete irrelevant before submitting)

All Pull Requests

Code Changes

Licensing

See copyright & licensing for more info. ARTIQ files that do not contain a license header are copyrighted by M-Labs Limited and are licensed under LGPLv3+.

sbourdeauducq commented 3 months ago

Is this tested? I don't think this is going to work without adding nalgebra to cargo. If this is hassle because Rust, we can also skip support for nalgebra on risc-v devices, since it's probably quite slow there anyway.