Skip to content
This repository was archived by the owner on Jun 9, 2023. It is now read-only.

Enhancement: Add dependency LAPACK #4

Closed
@indisoluble

Description

@indisoluble

LAPACK — Linear Algebra PACKage:

LAPACK is written in Fortran 90 and provides routines for solving systems of simultaneous linear equations, least-squares solutions of linear systems of equations, eigenvalue problems, and singular value problems ...

LAPACK is widely used by other packages like NumPy. For example, the later uses it to calculate the eigenvalues and eigenvectors of a Hermitian or symmetric matrix:

numpy.linalg.eigh: The eigenvalues/eigenvectors are computed using LAPACK routines _syevd, _heevd.

In turn, this method is used by qiskit-sdk-py to plot qspheres.

In order to be able to do the same in this repo, I suggest to take advantage of this package.

On macOS/iOS, this package is already included in Accelerate framework, so there is nothing else to do, just import the framework and start using it. But, in the case of Linux, it has to be added as a new dependency. This means we would have to create a Swift package. I already created one here and a small app to show to how to compute the eigenvalues & eigenvectors in all platforms here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions