forked from Qiskit/qiskit-aer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'PR-LapackSVD' into qiskit
- Loading branch information
Showing
6 changed files
with
199 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
// Dependencies: BLAS - LAPACK | ||
|
||
#ifndef _aer_framework_lapack_protos_hpp | ||
#define _aer_framework_lapack_protos_hpp | ||
|
||
#include <complex> | ||
#include <iostream> | ||
#include <vector> | ||
#include <array> | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
// LAPACK SVD function | ||
// https://netlib.org/lapack/explore-html/d3/da8/group__complex16_g_esing_gad6f0c85f3cca2968e1ef901d2b6014ee.html | ||
void zgesvd_(const char *jobu, const char *jobvt, const size_t *m, | ||
const size_t *n, std::complex<double> *a, const size_t *lda, | ||
double *s, std::complex<double> *u, | ||
const size_t *ldu, std::complex<double> *vt, | ||
const size_t *ldvt, std::complex<double> *work, | ||
const size_t *lwork, double *rwork, int *info); | ||
|
||
// D&C approach | ||
// https://netlib.org/lapack/explore-html/d3/da8/group__complex16_g_esing_gaccb06ed106ce18814ad7069dcb43aa27.html | ||
void zgesdd_(const char *jobz, const size_t *m, const size_t *n, | ||
std::complex<double> *a, const size_t *lda, double *s, | ||
std::complex<double> *u, const size_t *ldu, std::complex<double> *vt, | ||
const size_t *ldvt, std::complex<double> *work, | ||
const size_t *lwork, double *rwork, int *iwork, int *info); | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
|
||
#endif // end __lapack_protos_h_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters