qat.pbo.decompositions.quobly_decomposition

qat.pbo.decompositions.quobly_decomposition()

Returns KAKCompression parameters to decompose a one qubit gate into a pattern of the form \(K(\alpha)R_Z(\beta)K(\gamma)\), composed of Quobly native gates.

Definition of the \(K\) gate
\[K(\phi) = R_Z(\phi)R_X(\frac{\pi}{2})R_Z(-\phi)\]

This method is designed to be used directly in a KAKCompression plugin:

from qat.pbo.decompositions import quobly_decomposition
from qat.plugins import KAKCompression

plugin = KAKCompression(**quobly_decomposition())
Returns:

the one qubit gate decomposition: result["variables"] is a list of VAR corresponding to the abstract matrix and result["pattern"] is a pattern function of this matrix

Return type:

dict