qiskit.circuit.classicalfunction.BooleanExpression.to_matrix¶
-
BooleanExpression.
to_matrix
()¶ Return a Numpy.array for the gate unitary matrix.
- Returns
if the Gate subclass has a matrix definition.
- Return type
np.ndarray
- Raises
CircuitError – If a Gate subclass does not implement this method an exception will be raised when this base class method is called.