pygsti.circuits.circuitconstruction

pygsti.circuits.circuitconstruction#

Utility functions for creating and acting on lists of circuits.

Functions

create_circuits(*args, **kwargs)

Create a list of circuits using a nested loop.

create_lgst_circuits(prep_fiducials, ...)

List the circuits required for running LGST.

filter_circuit(circuit, sslbls_to_keep[, ...])

Filters circuit by keeping only a subset of its "lines" (i.e. state space labels, often qubits).

filter_circuits(circuits, sslbls_to_keep[, ...])

Applies filter_circuit() to each element of circuits.

iter_all_circuits(op_labels, minlength, ...)

Iterative version of list_all_circuits()

iter_all_circuits_onelen(op_labels, length)

Iterative version of list_all_circuits_onelen()

list_all_circuits(op_labels, minlength, ...)

List all the circuits in a given length range.

list_all_circuits_onelen(op_labels, length)

List all the circuits of a given length.

list_all_circuits_without_powers_and_cycles(...)

List all distinct aperiodic circuits up to a maximum length.

list_circuits_lgst_can_estimate(dataset, ...)

Compute the circuits that LGST is able to estimate from dataset and sets of fiducials.

list_partial_circuits(circuit)

List the partial sub-circuits of circuit.

list_random_circuits_onelen(op_labels, ...)

Create a list of random circuits of a given length.

manipulate_circuit(circuit, rules[, line_labels])

Manipulates a Circuit object according to rules.

manipulate_circuits(circuits, rules[, ...])

Applies manipulate_circuit() to each element of circuits.

repeat(x, num_times[, assert_at_least_one_rep])

Repeat x num_times times.

repeat_and_truncate(x, n[, ...])

Repeat and truncate x to yield a sequence with exactly length n.

repeat_count_with_max_length(x, max_length)

The maximum number of times x can be repeated such that its length is <= max_length.

repeat_with_max_length(x, max_length[, ...])

Repeat the x an integer number of times such that the result has length <= max_length.

to_circuits(list_of_op_label_tuples_or_strings)

Converts a list of operation label tuples or strings to a list of Circuit objects.

translate_circuit(circuit, alias_dict)

Translates circuit according to the aliases in alias_dict.

translate_circuits(circuits, alias_dict)

Applies translate_circuit() to each element of circuits.