qiskit.circuit.Gate.to_matrix¶
- Gate.to_matrix()[fuente]¶
Return a Numpy.array for the gate unitary matrix.
- Devuelve
if the Gate subclass has a matrix definition.
- Tipo del valor devuelto
np.ndarray
- Muestra
CircuitError – If a Gate subclass does not implement this method an exception will be raised when this base class method is called.