Tamil
Languages
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

qiskit.opflow.list_ops.ListOp.to_matrix

ListOp.to_matrix(massive=False)[source]

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.

Return type

ndarray

Returns

The NumPy ndarray equivalent to this Operator.