Utility Functions

py_qcode.error_print(lattice)
py_qcode.syndrome_print(lattice)
py_qcode.square_toric_code_sim(size, error_rate, n_trials, filename)

This function is square in more than one sense; it does everything the most vanilla way possible, and it uses a square grid to define the torus. You put in an integer size, an error rate and a number of trials to execute, and it produces a pickled dict containing the input to a simulation object in a file.

py_qcode.squoct_sim(size, error_rate, n_trials, filename)

Copypasta from square_toric_code_sim, maybe I’ll un-pasta this later.

Previous topic

Decoders

This Page