qiskit.synthesis.SolovayKitaevDecomposition.run¶
- SolovayKitaevDecomposition.run(gate_matrix, recursion_degree, return_dag=False, check_input=True)[código fonte]¶
Run the algorithm.
- Parâmetros
gate_matrix (np.ndarray) – The 2x2 matrix representing the gate. This matrix has to be SU(2) up to global phase.
recursion_degree (int) – The recursion degree, called \(n\) in the paper.
return_dag (bool) – If
True
return aDAGCircuit
, else aQuantumCircuit
.check_input (bool) – If
True
check that the input matrix is valid for the decomposition.
- Retorno
A one-qubit circuit approximating the
gate_matrix
in the specified discrete basis.- Tipo de retorno
QuantumCircuit” | “DAGCircuit