Functions for obtaining fixed-size matrices.
More...
Functions for obtaining fixed-size matrices.
◆ getCompMatr1() [1/3]
◆ getCompMatr1() [2/3]
static CompMatr1 getCompMatr1 |
( |
qcomp | in[2][2] | ) |
|
|
inlinestatic |
- Note
- Documentation for this function or struct is under construction!
Definition at line 464 of file matrices.h.
464{ return _getCompMatr1FromArr(in); }
◆ getCompMatr1() [3/3]
CompMatr1 getCompMatr1 |
( |
std::vector< std::vector< qcomp > > | in | ) |
|
- Note
- Documentation for this function or struct is under construction!
- See also
-
◆ getCompMatr2() [1/3]
- Note
- Documentation for this function or struct is under construction!
- See also
-
Definition at line 351 of file matrices.h.
351 {
352 _validateNewNestedElemsPtrNotNull(in, 2, __func__);
353
355
356 out.numQubits = 2;
357 out.numRows = 4;
358 for (int r=0; r<4; r++)
359 for (int c=0; c<4; c++)
360 out.elems[r][c] = in[r][c];
361
362 return out;
363}
Referenced by applyMultiStateControlledSqrtSwap().
◆ getCompMatr2() [2/3]
static CompMatr2 getCompMatr2 |
( |
qcomp | in[4][4] | ) |
|
|
inlinestatic |
- Note
- Documentation for this function or struct is under construction!
Definition at line 469 of file matrices.h.
469{ return _getCompMatr2FromArr(in); }
◆ getCompMatr2() [3/3]
CompMatr2 getCompMatr2 |
( |
std::vector< std::vector< qcomp > > | in | ) |
|
- Note
- Documentation for this function or struct is under construction!
- See also
-
◆ getDiagMatr1() [1/2]
◆ getDiagMatr1() [2/2]
DiagMatr1 getDiagMatr1 |
( |
std::vector< qcomp > | in | ) |
|
- Note
- Documentation for this function or struct is under construction!
- See also
-
◆ getDiagMatr2() [1/2]
- Note
- Documentation for this function or struct is under construction!
- See also
-
Definition at line 403 of file matrices.h.
403 {
404 _validateNewElemsPtrNotNull(in, __func__);
405
407
408 out.numQubits = 2;
409 out.numElems = 4;
410 for (int i=0; i<4; i++)
411 out.elems[i] = in[i];
412
413 return out;
414}
◆ getDiagMatr2() [2/2]
DiagMatr2 getDiagMatr2 |
( |
std::vector< qcomp > | in | ) |
|
- Note
- Documentation for this function or struct is under construction!
- See also
-
◆ getInlineCompMatr1()
CompMatr1 getInlineCompMatr1 |
( |
{{ matrix }} | | ) |
|
- Note
- Documentation for this function or struct is under construction!
-
This entity is actually a macro.
- See also
-
◆ getInlineCompMatr2()
CompMatr2 getInlineCompMatr2 |
( |
{{ matrix }} | | ) |
|
- Note
- Documentation for this function or struct is under construction!
-
This entity is actually a macro.
- See also
-
◆ getInlineDiagMatr1()
- Note
- Documentation for this function or struct is under construction!
-
This entity is actually a macro.
- See also
-
◆ getInlineDiagMatr2()
- Note
- Documentation for this function or struct is under construction!
-
This entity is actually a macro.
- See also
-