SubDiagonalOp Struct Reference

Represents a diagonal complex operator of a smaller dimension than the full Hilbert state of a Qureg. More...

#include <QuEST.h>

Data Fields

qrealimag
 The imaginary values of the 2^numQubits complex elements. More...
 
long long int numElems
 The number of diagonal elements, i.e. 2^numQubits. More...
 
int numQubits
 The number of target qubits which this SubDiagonalOp can operate upon. More...
 
qrealreal
 The real values of the 2^numQubits complex elements. More...
 

Detailed Description

Represents a diagonal complex operator of a smaller dimension than the full Hilbert state of a Qureg.

Author
Tyson Jones

Field Documentation

◆ imag

qreal* SubDiagonalOp::imag

The imaginary values of the 2^numQubits complex elements.

Referenced by createSubDiagonalOp(), destroySubDiagonalOp(), TEST_CASE(), and toQMatrix().

◆ numElems

long long int SubDiagonalOp::numElems

The number of diagonal elements, i.e. 2^numQubits.

Referenced by createSubDiagonalOp(), and TEST_CASE().

◆ numQubits

int SubDiagonalOp::numQubits

The number of target qubits which this SubDiagonalOp can operate upon.

Referenced by createSubDiagonalOp(), TEST_CASE(), and toQMatrix().

◆ real

qreal* SubDiagonalOp::real

The real values of the 2^numQubits complex elements.

Referenced by createSubDiagonalOp(), destroySubDiagonalOp(), TEST_CASE(), and toQMatrix().


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