exa.core.multistate_classifier.utils.get_state_vector

exa.core.multistate_classifier.utils.get_state_vector#

get_state_vector(input_data, group)#

Calculate the statevector over n qubits.

Parameters:
  • input_data (Dataset) – Dataset with the state data.

  • group (tuple[str, ...]) – sequence of n qubit names

Returns:

An array representing average counts of all the combinations of states of all the qutrits in the list, from

00…0 to 22…2, indexed by natural numbers from 0 to 3^n - 1.

Return type:

ndarray