qiskit.transpiler.passes.synthesis.plugin.UnitarySynthesisPlugin.run¶
- abstract UnitarySynthesisPlugin.run(unitary, **options)[Quellcode]¶
Run synthesis for the given unitary matrix
- Parameter
unitary (numpy.ndarray) – The unitary matrix to synthesize to a
DAGCircuit
objectoptions – The optional kwargs that are passed based on the output the
support_*
methods on the class. Refer to the documentation for these methods onUnitarySynthesisPlugin
to see what the keys and values are.
- Rückgabe
The dag circuit representation of the unitary. Alternatively, you can return a tuple of the form
(dag, wires)
wheredag
is the dag circuit representation of the circuit representation of the unitary andwires
is the mapping wires to use forqiskit.dagcircuit.DAGCircuit.substitute_node_with_dag()
. If you return a tuple andwires
isNone
this will behave just as if only aDAGCircuit
was returned. Additionally if this returnsNone
no substitution will be made.- Rückgabetyp