Binary Backend

class trueq.bindings.BinaryBackend(user, version=None)
get_seed()

Return the seed currently used by the backend.

Returns

Current backend seed.

Return type

int

set_seed(seed)

Change the seed used by the backend.

Parameters

seed (int) – New backend seed.

get_cur_mem()

Return the amount of memory currently used by the backend in megabytes.

Returns

Current amount of memory used by the backend.

Return type

int

get_max_mem()

Return the maximum amount of memory (in megabytes) that can be used by the backend.

Returns

Current maximum amount of backend memory.

Return type

int

set_max_mem(mem)

Change the maximum amount of memory (in megabytes) that can be used by the backend.

Parameters

mem (int) – New maximum amount of backend memory.

twirling_group(group)

Returns a tuple of all Gates in the specified twirling group as constructed by the backend.

Parameters

group (str) – Name of the twirling group.

Returns

All gates in the specified twirling group.

Return type

tuple

randomly_compile(circuits, n_compilations, twirling_group, compile_paulis, compress)

See randomly_compile() for documentation.

expectation_values(circuit_collection, labels, filter)

See expectation_values() for documentation.

fit(circuit_collection, labels, filter)

See fit() for documentation.

make_cb(cycle, n_random_cycles, n_circuits, n_decays, twirling_group, propagate_correction)

See make_cb() for documentation.

make_sc(cycle, n_random_cycles, n_circuits, pauli_decays, twirling_group, propagate_correction)

See make_sc() for documentation.

make_knr(cycle, n_random_cycles, n_circuits, n_bodies, twirling_group, propagate_correction)

See make_knr() for documentation.

make_tnr(cycle, n_random_cycles, n_circuits, targeted_errors, n_decays, twirling_group, propagate_correction)

See make_tnr() for documentation.

make_srb(labels, n_random_cycles, n_circuits, twirling_group)

See make_srb() for documentation.

make_irb(cycle, n_random_cycles, n_circuits, twirling_group, propagate_correction)

See make_irb() for documentation.

make_xrb(labels, n_random_cycles, n_circuits, twirling_group)

See make_xrb() for documentation.