Data File

This file states the data of the measurements.Both tomo_input the intensity must be specified. The syntax of the txt file is python. You write the data settings just like you would set a python matrix.

This is the following layout of the tomo_input matrix:

  • tomo_input
    • Values : 2d numpy array
    • Desc : Relative pump power (arb. units) during measurement; used for drift correction.
    • For n detectors:

    • tomo_input[ :, 0 ]: times
    • tomo_input[ :, 1 : n_qubit + 1) ]: singles
    • tomo_input[ :, n_qubit + 1 ]: coincidences
    • tomo_input[ :, n_qubit + 2 : 3 * n_qubit + 2) ]: measurements
    • For 2n detectors:

    • tomo_input[ :, 0 ]: times
    • tomo_input[ :, 1 : 2 * n_qubit + 1 ]: singles
    • tomo_input[ :, 2 * n_qubit + 1 : 2 ** n_qubit + 2 * n_qubit + 1 ]: coincidences
    • tomo_input[ :, 2 ** n_qubit + 2 * n_qubit + 1 : 2 ** n_qubit + 4 * n_qubit + 1 ]: measurements
  • intensity
    • Values : 1d numpy array
    • Desc : Relative pump power (arb. units) during measurement; used for drift correction.
Example:

This example is for 2 qubits using 1 detector.

tomo_input = np.array(
[[1,0,0,3708,1,0,1,0],
[1,0,0,77,1,0,0,1],
[1,0,0,1791,1,0,0.7071,0.7071],
[1,0,0,2048,1,0,0.7071,0.7071j],
[1,0,0,51,0,1,1,0],
[1,0,0,3642,0,1,0,1],
[1,0,0,2096,0,1,0.7071,0.7071],
[1,0,0,1926,0,1,0.7071,0.7071j],
[1,0,0,1766,0.7071,0.7071,1,0],
[1,0,0,1914,0.7071,0.7071,0,1],
[1,0,0,1713,0.7071,0.7071,0.7071,0.7071],
[1,0,0,3729,0.7071,0.7071,0.7071,0.7071j],
[1,0,0,2017,0.7071,0.7071j,1,0],
[1,0,0,1709,0.7071,0.7071j,0,1],
[1,0,0,3686,0.7071,0.7071j,0.7071,0.7071],
[1,0,0,2404,0.7071,0.7071j,0.7071,0.7071j]])
intensity = np.array([1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1])

See Also:


Contact

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