Tomography.filter_data

Tomography.filter_data(tomo_input)

Filters the data into separate arrays.

Parameters:
  • tomo_input : ndarray

    The input data for the current tomography. Example can be seen at top of page.

Returns:
  • coincidences : ndarray shape = (Number of measurements, NDetectors**NQubits)

    The counts of the tomography.

  • measurements_densities : ndarray with shape = (NDetectors*number of measurements,2^numQubits, 2^numQubits)

    The measurements of the tomography in density matrix form.

  • measurements_pures : ndarray with shape = (NDetectors*number of measurements, 2^numQubits)

    The measurements of the tomography in pure state form.

  • acc : 1darray with length = number of measurements or length = number of measurements * 2^numQubits for 2 det/qubit

    The accidental values of the tomography. Used for accidental correction.

  • overall_norms : 1darray with length = number of measurements or length = number of measurements * 2^numQubits for 2 det/qubit

    The relative weights of each measurment. Used for drift correction.


Contact

In case you have any further questions about the Python code, you should direct them to Scott Turro or Joey Shallat.