tuples.jl

Public functions

QuantumACES.TupleSetDataType
TupleSetData

Data parameterising a tuple set.

Fields

  • tuple_set::Vector{Vector{Int}}: The main tuple set, whose tuples are not repeated.
  • repeat_tuple_set::Vector{Vector{Int}}: The repeated tuple set, whose tuples are repeated repeat_numbers times.
  • repeat_numbers::Vector{Int}: The number of repetitions for each tuple in the repeated tuple set repeat_tuple_set.
  • repeat_indices::Vector{Int}: Indexes the repetition number in repeat_numbers that describes the number of repetitions for each tuple in repeat_tuple_set.
source
QuantumACES.get_tuple_set_dataMethod
get_tuple_set_data(c::AbstractCircuit; init_scaling::Float64 = 0.2)
get_tuple_set_data(c::AbstractCircuit, tuple_set::Vector{Vector{Int}}; init_scaling::Float64 = 0.2)

Returns the tuple set data corresponding to the circuit c, with the non-repeated tuples either being the supplied tuple_set or the basic tuple set for c. The repeat numbers are initialised to be inversely proportional to the average noise on the gates in the layers, implicitly assuming depolarising noise, scaled by a factor init_scaling which is empirically helpful.

source

Private functions

QuantumACES.get_tuple_set_paramsMethod
get_tuple_set_params(c::AbstractCircuit, tuple_set::Vector{Vector{Int}}, experiment_numbers::Vector{Int})

Returns the time taken to implement each tuple tuple_times and the default shot weights for each tuple shot_weights corresponding to the circuit c with the tuple set tuple_set and the experiment numbers experiment_numbers.

source