The Quantum Exact Simulation Toolkit v4.0.0
Loading...
Searching...
No Matches

Functions for overwriting the elements of channels. More...

Functions

void setInlineKrausMap (KrausMap map, int numQb, int numOps, std::vector< std::vector< std::vector< qcomp > > > matrices)
 
void setInlineKrausMap (KrausMap map, int numQb, int numOps, {{{ matrices }}})
 
void setInlineSuperOp (SuperOp op, int numQb, std::vector< std::vector< qcomp > > matrix)
 
void setInlineSuperOp (SuperOp op, int numQb, {{ matrix }})
 
void setKrausMap (KrausMap map, qcomp ***matrices)
 
void setKrausMap (KrausMap map, qcomp matrices[map.numMatrices][map.numRows][map.numRows])
 
void setKrausMap (KrausMap map, std::vector< std::vector< std::vector< qcomp > > > matrices)
 
void setSuperOp (SuperOp op, qcomp **matrix)
 
void setSuperOp (SuperOp op, qcomp matrix[op.numRows][op.numRows])
 
void setSuperOp (SuperOp op, std::vector< std::vector< qcomp > > matrix)
 

Detailed Description

Functions for overwriting the elements of channels.

Function Documentation

◆ setInlineKrausMap() [1/2]

void setInlineKrausMap ( KrausMap map,
int numQb,
int numOps,
std::vector< std::vector< std::vector< qcomp > > > matrices )
Note
Documentation for this function or struct is under construction!
Remarks
This function is only available in C++.

Referenced by TEST_CASE().

◆ setInlineKrausMap() [2/2]

void setInlineKrausMap ( KrausMap map,
int numQb,
int numOps,
{{{ matrices }}}  )
Note
Documentation for this function or struct is under construction!
This entity is actually a macro.

◆ setInlineSuperOp() [1/2]

void setInlineSuperOp ( SuperOp op,
int numQb,
std::vector< std::vector< qcomp > > matrix )
Note
Documentation for this function or struct is under construction!
Remarks
This function is only available in C++.

Referenced by TEST_CASE().

◆ setInlineSuperOp() [2/2]

void setInlineSuperOp ( SuperOp op,
int numQb,
{{ matrix }}  )
Note
Documentation for this function or struct is under construction!
This entity is actually a macro.

◆ setKrausMap() [1/3]

void setKrausMap ( KrausMap map,
qcomp *** matrices )
Note
Documentation for this function or struct is under construction!

Definition at line 307 of file channels.cpp.

307 {
308 validate_krausMapFields(map, __func__);
309
310 setAndSyncKrausMapElems(map, matrices);
311}

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

◆ setKrausMap() [2/3]

void setKrausMap ( KrausMap map,
qcomp matrices[map.numMatrices][map.numRows][map.numRows] )
Note
Documentation for this function or struct is under construction!
Remarks
This function is only available in C.
Note
This entity is actually a macro.

◆ setKrausMap() [3/3]

void setKrausMap ( KrausMap map,
std::vector< std::vector< std::vector< qcomp > > > matrices )
Note
Documentation for this function or struct is under construction!
Remarks
This function is only available in C++.

◆ setSuperOp() [1/3]

void setSuperOp ( SuperOp op,
qcomp ** matrix )
Note
Documentation for this function or struct is under construction!

Definition at line 269 of file channels.cpp.

269 {
270 validate_superOpFields(op, __func__);
271 validate_matrixNewElemsPtrNotNull(matrix, op.numRows, __func__); // fine for superop
272
273 setAndSyncSuperOpElems(op, matrix);
274}

Referenced by TEST_CASE(), and TEST_CASE().

◆ setSuperOp() [2/3]

void setSuperOp ( SuperOp op,
qcomp matrix[op.numRows][op.numRows] )
Note
Documentation for this function or struct is under construction!
Remarks
This function is only available in C.
Note
This entity is actually a macro.

◆ setSuperOp() [3/3]

void setSuperOp ( SuperOp op,
std::vector< std::vector< qcomp > > matrix )
Note
Documentation for this function or struct is under construction!
Remarks
This function is only available in C++.