surface_sim.experiments.arbitrary_experiment#

Functions

experiment_from_circuit(circuit, layouts, ...)

Returns the encoded version of the given circuit.

experiment_from_schedule(schedule, model, ...)

Returns a stim circuit corresponding to a logical experiment corresponding to the given schedule.

get_layouts_from_schedule(schedule)

Returns a list of all layouts present in the given schedule.

schedule_from_circuit(circuit, layouts, ...)

Returns the equivalent schedule from a stim circuit.

schedule_from_instructions(instructions)

Builds a schedule from a list of instructions.

schedule_from_mid_cycle_circuit(circuit, ...)

Returns the equivalent schedule from a stim circuit for contains mid cycle gates and/or codes.

split_observable_definitions(circuit)

Splits the observable definitions so that each of them only contains a single target.