iqm.benchmarks.utils_shadows

iqm.benchmarks.utils_shadows#

Shadow Tomography utility functions.

Functions

CUE(random_gen, n)

Prepares single qubit Haar-random unitary (drawn from Circuilar Unitary Ensemble - CUE).

get_local_shadow(counts, unitary_arg, ...[, ...])

Constructs shadows for each individual initialisation.

get_negativity(rho, n_qubits_a, n_qubits_b)

Computes the negativity of a given density matrix.

local_shadow_tomography(qc, n_unitaries, ...)

Prepares the circuits to perform local Haar or Clifford shadow tomography.

validate_shadow_tomography_params(...)

Validates the parameters for shadow tomography functions.