tuples.jl
Public functions
QuantumACES.TupleSetData
— TypeTupleSetData
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 repeatedrepeat_numbers
times.repeat_numbers::Vector{Int}
: The number of repetitions for each tuple in the repeated tuple setrepeat_tuple_set
.repeat_indices::Vector{Int}
: Indexes the repetition number inrepeat_numbers
that describes the number of repetitions for each tuple inrepeat_tuple_set
.
QuantumACES.get_basic_tuple_set
— Methodget_basic_tuple_set(c::AbstractCircuit)
Returns the basic tuple set for the circuit c
.
QuantumACES.get_tuple_set
— Methodget_tuple_set(tuple_set_data::TupleSetData)
Returns the tuple set corresponding to the data tuple_set_data
.
QuantumACES.get_tuple_set_data
— Methodget_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.
Private functions
QuantumACES.get_basic_experiment_numbers
— Methodget_basic_experiment_numbers(c::AbstractCircuit)
Returns the experiment numbers corresponding to the basic tuple set for the circuit c
.
QuantumACES.get_basic_times_harm_mean
— Methodget_basic_times_harm_mean(c::AbstractCircuit)
Returns the harmonic mean of the experiment times corresponding to the basic tuple set for the circuit c
.
QuantumACES.get_tuple_set_params
— Methodget_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
.