surface_sim.log_gates.rot_surface_code_css#

Functions

set_x(layout)

Adds the required attributes (in place) for the layout to run the Pauli X gate for the unrotated surface code.

set_z(layout)

Adds the required attributes (in place) for the layout to run the Pauli Z gate for the unrotated surface code.

set_idle(layout)

Adds the required attributes (in place) for the layout to run the Pauli I gate for codes with just one logical qubit.

set_fold_trans_s(layout, data_qubit)

Adds the required attributes (in place) for the layout to run the transversal S gate for the rotated surface code.

set_trans_cnot(layout_c, layout_t)

Adds the required attributes (in place) for the layout to run the transversal CNOT gate for the unrotated surface code.

set_encoding(layout)

Adds the required attributes (in place) for the layout to run the encoding circuits for the rotated surface code.