Contents Menu Expand Light mode Dark mode Auto light/dark, in light mode Auto light/dark, in dark mode
Skip to content
Guppy FT v0.1.2 Documentation
Guppy FT v0.1.2 Documentation
  • Getting started
  • QEC architecture developer guide
  • Guppy FT examples
    • Automatic Encoding for the Steane Code
    • Writing logical programs directly
    • Verifying Logical Clifford Gadgets
  • guppyft API
    • guppyft
      • code
        • iceberg
          • logical
            • Block
            • BorrowedBlock
            • PreBlock
            • Qubit
            • all_but_one_rx
            • all_but_one_rz
            • all_but_one_x
            • all_but_one_z
            • all_h
            • all_rx
            • all_ry
            • all_rz
            • all_x
            • all_y
            • all_z
            • borrow
            • borrow_more
            • cx
            • cx_between_blocks
            • cx_dynq
            • cx_transversal
            • discard
            • fan_in
            • fan_out
            • free_dynq
            • measure_all
            • measure_syndrome
            • restore
            • restore_some
            • rx
            • rx_dynq
            • ry
            • ry_dynq
            • rz
            • rz_dynq
            • swap
            • try_alloc_dynq
            • try_measure_one_x
            • try_measure_one_z
            • try_measure_x_dynq
            • try_measure_z_dynq
            • x
            • x_dynq
            • x_with_all_but_one_z
            • xx
            • xx_phase
            • xx_phase_between_blocks
            • xx_phase_dynq
            • y
            • y_dynq
            • yy
            • yy_phase
            • yy_phase_between_blocks
            • yy_phase_dynq
            • z
            • z_dynq
            • z_with_all_but_one_x
            • zz
            • zz_phase
            • zz_phase_between_blocks
            • zz_phase_dynq
        • steane
          • encode
            • QECPolicy
            • QECStyle
            • RUSStateFactoryConf
            • SteaneBuilder
            • SteaneEncoderParams
            • SteaneInstance
          • logical
            • Measurement
            • Qubit
            • cx
            • cz
            • free
            • h
            • inject_t
            • inject_tdg
            • measure_z
            • prep_t_state
            • qec_cycle
            • s
            • sdg
            • swap
            • t
            • tdg
            • x
            • y
            • z
          • primitives
            • RawMeasurement
            • cx
            • cz
            • decode
            • h
            • inject_t
            • inject_tdg
            • knill_qec_cycle
            • measure_z
            • prep_t_state_ft
            • prep_zero_ft
            • prep_zero_non_ft
            • s
            • sdg
            • steane_x_qec_cycle
            • steane_z_qec_cycle
            • x
            • y
            • z
      • code_def
        • StabilizerCode
        • identity_code
        • CodeDefinitionError
      • decompose
        • ToffoliDecomposer
      • encode
        • EncodeSpec
        • EncoderParams
        • ImplementOps
        • ImplementOpsSpec
        • LogicalCompiler
        • OpReplacements
        • ReplacementCompiler
        • TyReplacements
        • annotate_encoding
        • encode
        • implement_ops
        • UncompilableError
      • extensions
      • globals
        • map_global
        • with_global
      • std
        • LogicalBlock
        • LogicalMeasurement
        • decode
        • state_factory
          • PreBlock
          • StateFactory
      • verify
        • valid_clifford_implementation
        • valid_stabilizer_state_preparation
Back to top

swap¶

guppyft.code.steane.logical.swap(q0: Qubit, q1: Qubit) → None[source]¶

SWAP gate.

Next
t
Previous
sdg
Copyright © 2025 Quantinuum Ltd. All rights reserved.
Privacy Statement
/
Cookie Notice
/
Terms and Conditions
Made with Sphinx and @pradyunsg's Furo
On this page
  • swap
    • swap()