Sequential Quantum Gate Decomposer  v1.9.6
Powerful decomposition of general unitarias into one- and two-qubit gates gates
List of all members | Public Member Functions | Private Attributes
Matrix_any Class Reference

Non-owning carrier that references either Matrix (complex128) or Matrix_float (complex64) without data conversion. More...

#include <matrix_any.h>

Public Member Functions

Matrix_floatas_float32 ()
 
Matrixas_float64 ()
 
int cols () const
 
bool is_float32 () const
 
bool is_float64 () const
 
 Matrix_any (Matrix &m)
 
 Matrix_any (Matrix_float &m)
 
matrix_precision precision () const
 
int rows () const
 
int size () const
 
int stride () const
 

Private Attributes

Matrix_floatm32_
 
Matrixm64_
 
matrix_precision precision_
 

Detailed Description

Non-owning carrier that references either Matrix (complex128) or Matrix_float (complex64) without data conversion.

Note
Intended for precision dispatch at API boundaries only. Hot kernels should still consume concrete Matrix or Matrix_float types.

Definition at line 30 of file matrix_any.h.

Constructor & Destructor Documentation

◆ Matrix_any() [1/2]

Matrix_any::Matrix_any ( Matrix m)
inline

Definition at line 32 of file matrix_any.h.

◆ Matrix_any() [2/2]

Matrix_any::Matrix_any ( Matrix_float m)
inline

Definition at line 35 of file matrix_any.h.

Member Function Documentation

◆ as_float32()

Matrix_float& Matrix_any::as_float32 ( )
inline

Definition at line 55 of file matrix_any.h.

Here is the caller graph for this function:

◆ as_float64()

Matrix& Matrix_any::as_float64 ( )
inline

Definition at line 48 of file matrix_any.h.

Here is the caller graph for this function:

◆ cols()

int Matrix_any::cols ( ) const
inline

Definition at line 44 of file matrix_any.h.

◆ is_float32()

bool Matrix_any::is_float32 ( ) const
inline

Definition at line 41 of file matrix_any.h.

Here is the caller graph for this function:

◆ is_float64()

bool Matrix_any::is_float64 ( ) const
inline

Definition at line 40 of file matrix_any.h.

Here is the caller graph for this function:

◆ precision()

matrix_precision Matrix_any::precision ( ) const
inline

Definition at line 38 of file matrix_any.h.

◆ rows()

int Matrix_any::rows ( ) const
inline

Definition at line 43 of file matrix_any.h.

◆ size()

int Matrix_any::size ( ) const
inline

Definition at line 46 of file matrix_any.h.

◆ stride()

int Matrix_any::stride ( ) const
inline

Definition at line 45 of file matrix_any.h.

Member Data Documentation

◆ m32_

Matrix_float* Matrix_any::m32_
private

Definition at line 65 of file matrix_any.h.

◆ m64_

Matrix* Matrix_any::m64_
private

Definition at line 64 of file matrix_any.h.

◆ precision_

matrix_precision Matrix_any::precision_
private

Definition at line 63 of file matrix_any.h.


The documentation for this class was generated from the following file: