surface_sim.log_gates.rot_surface_code_css.set_fold_trans_s#
- set_fold_trans_s(layout, data_qubit)[source]#
Adds the required attributes (in place) for the layout to run the transversal S gate for the rotated surface code.
This implementation assumes that the qubits are placed in a square 2D grid.
- Parameters:
- layout
The layout in which to add the attributes.
- data_qubit
The data qubit in a corner through which the folding of the surface code runs.
Notes
The circuit implementation follows from https://doi.org/10.22331/q-2024-04-08-1310. The information about the logical transversal S gate is stored in the layout as the parameter
"trans-s_{log_qubit_label}"for each of the qubits, where for the case of data qubits it is the information about which gates to perform and for the case of the ancilla qubits it corresponds to how the stabilizers generators are transformed.