Japanese
言語
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

qiskit.circuit.classicalfunction.ClassicalFunction.to_matrix

ClassicalFunction.to_matrix()

Return a Numpy.array for the gate unitary matrix.

戻り値

if the Gate subclass has a matrix definition.

戻り値の型

np.ndarray

例外

CircuitError – If a Gate subclass does not implement this method an exception will be raised when this base class method is called.