# qiskit.opflow.primitive_ops.PrimitiveOp.to_matrix¶

PrimitiveOp.to_matrix(massive=False)[소스]

Return NumPy representation of the Operator. Represents the evaluation of the Operator’s underlying function on every combination of basis binary strings. Warn if more than 16 qubits to force having to set massive=True if such a large vector is desired.

반환 형식

ndarray

반환값

The NumPy ndarray equivalent to this Operator.