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_real_any Class Reference

Non-owning carrier that can reference either Matrix_real or Matrix_real_float. More...

#include <matrix_real_any.h>

Public Member Functions

Matrix_real_floatas_float32 ()
 
Matrix_realas_float64 ()
 
int cols () const
 
bool is_float32 () const
 
bool is_float64 () const
 
 Matrix_real_any (Matrix_real &m)
 
 Matrix_real_any (Matrix_real_float &m)
 
matrix_real_precision precision () const
 
int rows () const
 
int stride () const
 

Private Attributes

Matrix_real_floatm32_
 
Matrix_realm64_
 
matrix_real_precision precision_
 

Detailed Description

Non-owning carrier that can reference either Matrix_real or Matrix_real_float.

Definition at line 26 of file matrix_real_any.h.

Constructor & Destructor Documentation

◆ Matrix_real_any() [1/2]

Matrix_real_any::Matrix_real_any ( Matrix_real m)
inline

Definition at line 28 of file matrix_real_any.h.

◆ Matrix_real_any() [2/2]

Matrix_real_any::Matrix_real_any ( Matrix_real_float m)
inline

Definition at line 31 of file matrix_real_any.h.

Member Function Documentation

◆ as_float32()

Matrix_real_float& Matrix_real_any::as_float32 ( )
inline

Definition at line 50 of file matrix_real_any.h.

Here is the caller graph for this function:

◆ as_float64()

Matrix_real& Matrix_real_any::as_float64 ( )
inline

Definition at line 43 of file matrix_real_any.h.

Here is the caller graph for this function:

◆ cols()

int Matrix_real_any::cols ( ) const
inline

Definition at line 40 of file matrix_real_any.h.

◆ is_float32()

bool Matrix_real_any::is_float32 ( ) const
inline

Definition at line 36 of file matrix_real_any.h.

Here is the caller graph for this function:

◆ is_float64()

bool Matrix_real_any::is_float64 ( ) const
inline

Definition at line 37 of file matrix_real_any.h.

Here is the caller graph for this function:

◆ precision()

matrix_real_precision Matrix_real_any::precision ( ) const
inline

Definition at line 34 of file matrix_real_any.h.

◆ rows()

int Matrix_real_any::rows ( ) const
inline

Definition at line 39 of file matrix_real_any.h.

◆ stride()

int Matrix_real_any::stride ( ) const
inline

Definition at line 41 of file matrix_real_any.h.

Member Data Documentation

◆ m32_

Matrix_real_float* Matrix_real_any::m32_
private

Definition at line 60 of file matrix_real_any.h.

◆ m64_

Matrix_real* Matrix_real_any::m64_
private

Definition at line 59 of file matrix_real_any.h.

◆ precision_

matrix_real_precision Matrix_real_any::precision_
private

Definition at line 58 of file matrix_real_any.h.


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