MatrixOperator.evaluate_with_statevector

MatrixOperator.evaluate_with_statevector(quantum_state)[source]
Parameters

quantum_state (numpy.ndarray) – quantum state

Returns

the mean value float: the standard deviation

Return type

float

Raises

AquaError – if Operator is empty