surface_sim.log_gates.unrot_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 unrotated surface code.
This implementation assumes that the qubits are placed in a square 2D grid, and the separation between qubits is larger than
1e-5units.- 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.1088/1367-2630/17/8/083026 The circuit is shown in https://arxiv.org/pdf/2406.17653 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.