tqec.plaquette.library.zxxz.make_zxxz_surface_code_plaquette#

make_zxxz_surface_code_plaquette(basis: Literal['X', 'Z'], data_initialization: ResetBasis | None = None, data_measurement: MeasurementBasis | None = None, x_boundary_orientation: Literal['HORIZONTAL', 'VERTICAL'] = 'VERTICAL', init_meas_only_on_side: PlaquetteSide | None = None) Plaquette[source]#

Create a ZXXZ-type surface code plaquette. The circuit is adapted to superconducting qubits architecture s.t. all CNOTs are compiled to the CZ gates and additional Hadamard gates. Only Z basis reset and measurement are supported.

Parameters:
  • basis – the basis of the plaquette.

  • data_initialization – the logical basis for data initialization.

  • data_measurement – the logical basis for data measurement.

  • x_boundary_orientation – the orientation of the X boundary.

  • init_meas_only_on_side – the side for data initialization and measurement.