Accelerated Randomized Benchmarking

RandomizedBenchmarkingModel - Likelihood for RB experiments

Class Reference

class qinfer.rb.RandomizedBenchmarkingModel(interleaved=False, order=0)[source]

Bases: qinfer.abstract_model.DifferentiableModel

Implmenets the randomized benchmarking or interleaved randomized benchmarking protocol, such that the depolarizing strength \(p\) of the twirled channel is a parameter to be estimated, given a sequnce length \(m\) as an experimental control. In addition, the zeroth-order “fitting”-parameters \(A\) and \(B\) are represented as model parameters to be estimated.

Parameters:interleaved (bool) – If True, the model implements the interleaved protocol, with \(\tilde{p}\) being the depolarizing parameter for the interleaved gate and with \(p_{\text{ref}}\) being the reference parameter.
likelihood(outcomes, modelparams, expparams)[source]
score(outcomes, modelparams, expparams, return_L=False)[source]

Function Reference

qinfer.rb.p(F, d=2)[source]

Given the fidelity of a gate in \(d\) dimensions, returns the depolarizating probability of the twirled channel.

  • F (float) – Fidelity of a gate.
  • d (int) – Dimensionality of the Hilbert space on which the gate acts.
qinfer.rb.F(p, d=2)[source]

Given the depolarizating probabilty of a twirled channel in \(d\) dimensions, returns the fidelity of the original gate.

  • p (float) – Depolarizing parameter for the twirled channel.
  • d (int) – Dimensionality of the Hilbert space on which the gate acts.