qiskit.opflow.state_fns.VectorStateFn.to_density_matrix¶
- VectorStateFn.to_density_matrix(massive=False)[소스]¶
Return matrix representing product of StateFn evaluated on pairs of basis states. Overridden by child classes.
- 매개변수
massive (bool) – Whether to allow large conversions, e.g. creating a matrix representing over 16 qubits.
- 반환
The NumPy array representing the density matrix of the State function.
- 예외 발생
ValueError – If massive is set to False, and exponentially large computation is needed.
- 반환 형식
ndarray