Sequential Quantum Gate Decomposer  v1.9.6
Powerful decomposition of general unitarias into one- and two-qubit gates gates
Functions
find_numpy_blas_dir Namespace Reference

Functions

def _default_path (numpy_module)
 
def _try_config_api (numpy_module)
 
def _try_new_api (numpy_module)
 
def main ()
 

Detailed Description

Utility script invoked from CMake to locate the BLAS directory used by NumPy.

The script mirrors the previous inline CMake/Python logic by trying the more
recent NumPy APIs first, then falling back to older mechanisms, finally
defaulting to the standard ``../lib`` location inside the NumPy installation.
It prints the detected directory to stdout.

Function Documentation

◆ _default_path()

def find_numpy_blas_dir._default_path (   numpy_module,
  str 
)
private
Final fallback: assume BLAS resides in ../lib next to NumPy.

Definition at line 54 of file find_numpy_blas_dir.py.

Here is the caller graph for this function:

◆ _try_config_api()

def find_numpy_blas_dir._try_config_api (   numpy_module,
  str,
  None 
)
private
Fallback to NumPy's configuration metadata.

Definition at line 41 of file find_numpy_blas_dir.py.

◆ _try_new_api()

def find_numpy_blas_dir._try_new_api (   numpy_module,
  str,
  None 
)
private
Attempt to locate BLAS directory using newer NumPy internals.

Definition at line 18 of file find_numpy_blas_dir.py.

◆ main()

def find_numpy_blas_dir.main (   int)

Definition at line 60 of file find_numpy_blas_dir.py.

Here is the call graph for this function: