GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing quest-kit.github.io โ The Quantum Exact Simulation Toolkit: Getters
Loading...
Searching...
No Matches
Functions for obtaining fixed-size matrices. More...
Detailed DescriptionFunctions for obtaining fixed-size matrices. Function Documentationโ getCompMatr1() [1/2]
Definition at line 811 of file matrices.h. 811 {
812 _validateNewNestedElemsPtrNotNull(in, 1, __func__);
813
814 CompMatr1 out;
815
816 out.numQubits = 1;
817 out.numRows = 2;
818 for (int r=0; r<2; r++)
819 for (int c=0; c<2; c++)
820 out.elems[r][c] = in[r][c];
821
822 return out;
823}
Definition matrices.h:85 Referenced by applyMultiStateControlledHadamard(), applyMultiStateControlledRotateAroundAxis(), TEST_CASE(), and TEST_CASE(). โ getCompMatr1() [2/2]
Definition at line 950 of file matrices.h. 950{ return _getCompMatr1FromArr(in); }
โ getCompMatr2() [1/2]
Definition at line 837 of file matrices.h. 837 {
838 _validateNewNestedElemsPtrNotNull(in, 2, __func__);
839
840 CompMatr2 out;
841
842 out.numQubits = 2;
843 out.numRows = 4;
844 for (int r=0; r<4; r++)
845 for (int c=0; c<4; c++)
846 out.elems[r][c] = in[r][c];
847
848 return out;
849}
Definition matrices.h:120 Referenced by applyMultiStateControlledSqrtSwap(). โ getCompMatr2() [2/2]
Definition at line 955 of file matrices.h. 955{ return _getCompMatr2FromArr(in); }
โ getDiagMatr1()
Definition at line 864 of file matrices.h. 864 {
865 _validateNewElemsPtrNotNull(in, __func__);
866
867 DiagMatr1 out;
868
869 out.numQubits = 1;
870 out.numElems = 2;
871 for (int i=0; i<2; i++)
872 out.elems[i] = in[i];
873
874 return out;
875}
Definition matrices.h:323 Referenced by applyMultiQubitPhaseFlip(), applyMultiQubitPhaseShift(), applyMultiStateControlledS(), and applyMultiStateControlledT(). โ getDiagMatr2()
Definition at line 889 of file matrices.h. 889 {
890 _validateNewElemsPtrNotNull(in, __func__);
891
892 DiagMatr2 out;
893
894 out.numQubits = 2;
895 out.numElems = 4;
896 for (int i=0; i<4; i++)
897 out.elems[i] = in[i];
898
899 return out;
900}
Definition matrices.h:359 โ getInlineCompMatr1()
โ getInlineCompMatr2()
โ getInlineDiagMatr1()
โ getInlineDiagMatr2()
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| You are visitor 01402809 โ 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. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||