pygsti.extras.interpygate.process_tomography.run_process_tomography#
- run_process_tomography(state_to_density_matrix_fn, n_qubits=1, comm=None, verbose=False, basis='pp', time_dependent=False, opt_args=None)#
A function to compute the process matrix for a quantum channel given a function that maps a pure input state to an output density matrix.
- Parameters:
state_to_density_matrix_fn – (function: array -> array) The function that computes the output density matrix from an input pure state.
n_qubits – (int, optional, default 1) The number of qubits expected by the function. Defaults to 1.
comm – (MPI.comm object, optional) An MPI communicator object for parallel computation. Defaults to local comm.
verbose – (bool, optional, default False) How much detail to send to stdout
basis – (str, optional, default ‘pp’) The basis in which to return the process matrix
time_dependent – (bool, optional, default False ) If the process is time dependent, then expect the density matrix function to return a list of density matrices, one at each time point.
opt_args – (dict, optional) Optional keyword arguments for state_to_density_matrix_fn
- Returns:
- numpy.ndarray
The process matrix representation of the quantum channel in the basis specified by ‘basis’. If ‘time_dependent’=True, then this will be an array of process matrices.