Spanish
Idiomas
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

qiskit.opflow.state_fns.VectorStateFn.to_density_matrix

VectorStateFn.to_density_matrix(massive=False)[fuente]

Return matrix representing product of StateFn evaluated on pairs of basis states. Overridden by child classes.

Parámetros

massive (bool) – Whether to allow large conversions, e.g. creating a matrix representing over 16 qubits.

Devuelve

The NumPy array representing the density matrix of the State function.

Muestra

ValueError – If massive is set to False, and exponentially large computation is needed.

Tipo del valor devuelto

ndarray