GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

No menu could be recovered. Follow the blue links in the page.

This view

  • Original page
  • New address

GeezerVison is showing quest-kit.github.io — The Quantum Exact Simulation Toolkit: Types

Logo
The Quantum Exact Simulation Toolkit v4.3.0
Loading...
Searching...
No Matches
Typedefs | Functions
Types
📋 API

Macros for precision-agnostic real and complex arithmetic. More...

Typedefs

typedef std::complex< FLOAT_TYPE > qcomp
 
typedef INDEX_TYPE qindex
 
typedef FLOAT_TYPE qreal
 

Functions

static qcomp getQcomp (qreal re, qreal im)
 
void reportScalar (const char *label, qcomp num)
 
void reportScalar (const char *label, qreal num)
 
void reportStr (const char *str)
 

Detailed Description

Macros for precision-agnostic real and complex arithmetic.

Typedef Documentation

◆ qcomp

typedef FLOAT_TYPE _Complex qcomp

Definition at line 45 of file types.h.

◆ qindex

typedef INDEX_TYPE qindex

Definition at line 32 of file types.h.

◆ qreal

typedef FLOAT_TYPE qreal

Definition at line 31 of file types.h.

Function Documentation

◆ getQcomp()

static qcomp getQcomp ( qreal re,
qreal im )
inlinestatic
Note
Documentation for this function or struct is under construction!

Definition at line 91 of file types.h.

91 {
92
93 #if defined(__cplusplus)
94 return qcomp(re, im);
95
96 #elif defined(_MSC_VER)
97 return (qcomp) {re, im};
98
99 #else
100 return re + I*im;
101
102 #endif
103}

Referenced by setQuregToMixture(), and TEST_CASE().

◆ reportScalar() [1/2]

void reportScalar ( const char * label,
qcomp num )
Note
Documentation for this function or struct is under construction!
Warning
This function has not yet been unit tested and may contain bugs. Please use with caution!

Definition at line 55 of file types.cpp.

55{ reportScalar(string(label), printer_toStr(num)); }
reportScalar
void reportScalar(const char *label, qcomp num)
Definition types.cpp:55

Referenced by reportScalar(), and reportScalar().

◆ reportScalar() [2/2]

void reportScalar ( const char * label,
qreal num )
Note
Documentation for this function or struct is under construction!
Warning
This function has not yet been unit tested and may contain bugs. Please use with caution!

Definition at line 52 of file types.cpp.

52{ reportScalar(string(label), printer_toStr(num)); }

◆ reportStr()

void reportStr ( const char * str)
Note
Documentation for this function or struct is under construction!
Warning
This function has not yet been unit tested and may contain bugs. Please use with caution!

Definition at line 33 of file types.cpp.

33 {
34 reportStr(string(str));
35}
reportStr
void reportStr(std::string str)
Definition types.cpp:22
  • Generated by doxygen 1.12.0
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.