Bengali
Languages
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

qiskit.circuit.ControlledGate.to_matrix

ControlledGate.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.