qiskit.synthesis.SolovayKitaevDecomposition.load_basic_approximations¶
- SolovayKitaevDecomposition.load_basic_approximations(data)[código fonte]¶
Load basic approximations.
- Parâmetros
data (list | str | dict) – If a string, specifies the path to the file from where to load the data. If a dictionary, directly specifies the decompositions as
{gates: matrix}
. Theregates
are the names of the gates producing the SO(3) matrixmatrix
, e.g.{"h t": np.array([[0, 0.7071, -0.7071], [0, -0.7071, -0.7071], [-1, 0, 0]]}
.- Retorno
A list of basic approximations as type
GateSequence
.- Levanta
ValueError – If the number of gate combinations and associated matrices does not match.
- Tipo de retorno
list[GateSequence]