pygsti.extras.paritybenchmarking.disturbancecalc.unit_vector

Contents

pygsti.extras.paritybenchmarking.disturbancecalc.unit_vector#

unit_vector(a, b)#

Returns the unit vector of length ‘b’ with the ‘a’th element = 1