iqm.benchmarks.compressive_gst.mgst.additional_fns.n_params

Contents

iqm.benchmarks.compressive_gst.mgst.additional_fns.n_params#

iqm.benchmarks.compressive_gst.mgst.additional_fns.n_params(pdim: int, d: int, rK: int, n_povm: int) int#

Returns the number of free parameters in a gate set.

Unitary gauge parameters and unitary freedom in representing the Kraus operators and the POVM elements are subtracted. For details, see https://docserv.uni-duesseldorf.de/servlets/DerivateServlet/Derivate-71735/dissertation_brieger-2%281%29.pdf

Parameters:
  • pdim (int) – The physical dimension, i.e. 2^(#qubits)

  • d (int) – The number of gates in the gate set

  • rK (int) – The Kraus rank of the gates

  • n_povm (int) – The number of POVM elements; For computational basis measurements n_povm = pdim

Returns:

The number of free parameters

Return type:

n_params