Distributed QUEST for GPU
Data Fields
MultiQubit Struct Reference

Represents a system of qubits. More...

#include <QuEST.h>

Data Fields

ComplexArray stateVec
 Probablilty amplitudes for the multi qubit state. More...
 
ComplexArray pairStateVec
 Temporary storage for a chunk of the state vector received from another process in the MPI version. More...
 
ComplexArray deviceStateVec
 Storage for probability amplitudes for the multi qubit state on GPU. More...
 
REALfirstLevelReduction
 Storage for reduction of probabilities on GPU. More...
 
REALsecondLevelReduction
 
int numQubits
 Number of qubits in the state. More...
 
long long int numAmps
 Number of probability amplitudes held in stateVec by this process In the non-MPI version, this is the total number of amplitudes. More...
 
int chunkId
 The position of the chunk of the state vector held by this process in the full state vector. More...
 
int numChunks
 Number of chunks the state vector is broken up into – the number of MPI processes used. More...
 

Detailed Description

Represents a system of qubits.

Qubits are zero-based and the the first qubit is the rightmost

Definition at line 48 of file QuEST.h.

Field Documentation

◆ chunkId

int MultiQubit::chunkId

The position of the chunk of the state vector held by this process in the full state vector.

Definition at line 64 of file QuEST.h.

Referenced by reportMultiQubitParams(), and reportState().

◆ deviceStateVec

ComplexArray MultiQubit::deviceStateVec

Storage for probability amplitudes for the multi qubit state on GPU.

Definition at line 55 of file QuEST.h.

◆ firstLevelReduction

REAL* MultiQubit::firstLevelReduction

Storage for reduction of probabilities on GPU.

Definition at line 57 of file QuEST.h.

◆ numAmps

long long int MultiQubit::numAmps

Number of probability amplitudes held in stateVec by this process In the non-MPI version, this is the total number of amplitudes.

Definition at line 62 of file QuEST.h.

Referenced by reportState().

◆ numChunks

int MultiQubit::numChunks

Number of chunks the state vector is broken up into – the number of MPI processes used.

Definition at line 66 of file QuEST.h.

Referenced by reportMultiQubitParams().

◆ numQubits

int MultiQubit::numQubits

Number of qubits in the state.

Definition at line 59 of file QuEST.h.

Referenced by reportMultiQubitParams().

◆ pairStateVec

ComplexArray MultiQubit::pairStateVec

Temporary storage for a chunk of the state vector received from another process in the MPI version.

Definition at line 53 of file QuEST.h.

◆ secondLevelReduction

REAL * MultiQubit::secondLevelReduction

Definition at line 57 of file QuEST.h.

◆ stateVec

ComplexArray MultiQubit::stateVec

Probablilty amplitudes for the multi qubit state.

Definition at line 51 of file QuEST.h.

Referenced by reportState().


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