Tomography.StateTomography

Tomography.StateTomography(measurements, counts)

Main function that runs tomography. This function requires a set of measurements and a set of counts.

Parameters:
  • measurements : ndarray shape = ( Number of measurements , 2*NQubits )

    Each row in the matrix is a set of independent measurements.

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

    Each row in the matrix is a set of independent measurements.

  • crosstalk : ndarray shape = ( Number of measurements , 2**NQubits,2**NQubits ) (optional)

    The crosstalk matrix to compensate for inefficentcies in your beam splitter.

  • efficiency : 1darray with length = NQubits*NDetectors (optional)

    The relative efficienies between your detector pairs.

  • time : 1darray with length = Number of measurements (optional)

    The total duration of each measurment.

  • singles : ndarray shape = ( Number of measurements , 2*NQubits ) (optional)

    The singles counts on each detector.

  • window : 1darray with length = NQubits*NDetectors (optional)

    The coincidence window duration for each detector pair.

  • error : int (optional)

    The number of monte carlo states used to estimate the properties of the state.

  • intensities : 1darray with length = Number of measurements (optional)

    The relative intensity of each measurement. Used for drift correction.

  • method : ['MLE','HMLE','BME','LINER'] (optional)

    Which method to use to run tomography. Default is MLE

Returns:
  • rhog : ndarray with shape = (2^numQubits, 2^numQubits)

    The predicted density matrix.

  • intensity : The predicted overall intensity used to normalize the state.

    The predicted overall intensity used to normalize the state.

  • fvalp : float

    Final value of the internal optimization function. Values greater than the number of measurements indicate poor agreement with a quantum state.


Contact

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