qat.pbo.decompositions.zxz_decomposition

qat.pbo.decompositions.zxz_decomposition()

Returns KAKCompression parameters to decompose gate as RZ-RX-RZ

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

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

plugin = KAKCompression(**zxz_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