MCPcopy Create free account
hub / github.com/QuEST-Kit/QuEST / util_getExpPauliX

Function util_getExpPauliX

quest/src/core/utilities.cpp:1027–1037  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1025}
1026
1027CompMatr1 util_getExpPauliX(qreal angle) {
1028
1029 qreal x = util_getPhaseFromGateAngle(angle);
1030 qreal c = std::cos(x);
1031 qreal s = std::sin(x);
1032
1033 return getCompMatr1({
1034 {qcomp(c,0), qcomp(0,s)},
1035 {qcomp(0,s), qcomp(c,0)}
1036 });
1037}
1038
1039CompMatr1 util_getExpPauliY(qreal angle) {
1040

Callers 1

Calls 2

getCompMatr1Function · 0.50

Tested by

no test coverage detected