Skip to main content
Functions:

qct_qst_type1

qct_qst_type1(
x: QArray[QBit]
) -> None
[Qmod Classiq-library function] Applies the quantum discrete cosine (DCT) and sine (DST) transform of type 1 to the qubit array x. Corresponds to the matrix (with nn\equivx.len): \left( egin{array}{ccc|c} {} &{} &{} \ {}&{ m DCT}^{(1)}(2^{n-1}+1) & {}& 0\ {} &{} &{} \ \hline {} & 0 & {} & i{ m DST}^{(1)}(2^{n-1}-1) \end{array} ight) Parameters:

qct_qst_type2

qct_qst_type2(
x: QArray[QBit],
q: Const[QBit]
) -> None
[Qmod Classiq-library function] Applies the quantum discrete cosine (DCT) and sine (DST) transform of type 2 to the qubit array x concatenated with q, with q being the MSB. Corresponds to the matrix (with nn\equivx.len+1): \left( egin{array}{c|c} { m DCT}^{(2)}(2^{n-1}) & 0\ \hline 0 & -{ m DST}^{(2)}(2^{n-1}) \end{array} ight) Parameters:

qct_type2

qct_type2(
x: QArray[QBit]
) -> None
[Qmod Classiq-library function] Applies the quantum discrete cosine (DCT) transform of type 2, {mDCT}{(2)}\{ m DCT\}^\{(2)\}, to the qubit array x. Parameters:

qst_type2

qst_type2(
x: QArray[QBit]
) -> None
[Qmod Classiq-library function] Applies the quantum discrete sine (DST) transform of type 2, {mDST}{(2)}\{ m DST\}^\{(2)\}, to the qubit array x. Parameters: