qat.pbo.decompositions.ions_decomposition
- qat.pbo.decompositions.ions_decomposition()
The ion decomposition is used to decompose a one qubit gate into a pattern of the form \(R_Z(\beta) \cdot R_X(\frac{\pi}{2}) \cdot R_Z(\gamma) \cdot R_X(\frac{\pi}{2}) \cdot R_Z(\delta)\)
This method is designed to be used directly in a
KAKCompression
plugin:from qat.pbo.decompositions import ions_decomposition from qat.plugins import KAKCompression plugin = KAKCompression(**ions_decomposition())
- Returns
the one qubit gate decomposition:
result["variables"]
is a list ofVAR
corresponding to the abstract matrix andresult["pattern"]
is a pattern function of this matrix- Return type
dict