Contents Menu Expand Light mode Dark mode Auto light/dark, in light mode Auto light/dark, in dark mode
Skip to content
Guppy v0.21.3 Documentation
Logo
Guppy v0.21.3 Documentation
  • Getting Started
  • Guppy Language Guide
    • Data types
      • Arrays
      • Tuples
      • Structs
    • Functions
    • Control flow
    • Static compilation and typing
    • Differences between Guppy and Python
    • Ownership and Linear Types
    • Comptime
  • Examples Gallery
    • N-qubit GHZ and Graph state preparation
    • The SWAP test and loading pytket circuits
    • Canonical Quantum Phase estimation
    • Control-Flow
    • Adaptive QPE
    • Random Number Generation
    • Postselection: exit and panic
    • Debugging with state_result statements
    • T state distillation and the Option type
  • guppylang API
    • @guppy decorator
    • Emulator
      • EmulatorInstance
      • EmulatorResult
      • QsysShot
      • TaggedResult
      • EmulatorBuilder
      • PartialVector
      • PartialState
      • TracedState
    • Definitions
    • Standard Library
      • angles
        • angle
      • array
        • ArrayIter
        • FrozenarrayIter
        • array
        • frozenarray
      • bool
        • bool
      • builtins
        • array
        • bool
        • float
        • frozenarray
        • int
        • list
        • nat
        • Option
        • qubit
        • SizedIter
        • str
        • ArrayIter
        • FrozenarrayIter
        • Range
        • abs
        • callable
        • divmod
        • exit
        • len
        • nothing
        • panic
        • pow
        • range
        • result
        • round
        • some
        • barrier
        • bytecast_float_to_nat
        • bytecast_nat_to_float
        • mem_swap
      • lang
        • Copy
        • Drop
      • collections
        • PriorityQueue
        • Stack
        • empty_priority_queue
        • empty_stack
      • debug
        • state_result
      • either
        • Either
        • left
        • right
      • futures
        • Future
      • iter
        • range
        • SizedIter
        • range
      • list
        • list
      • mem
        • mem_swap
        • with_owned
      • num
        • float
        • int
        • nat
        • abs
        • bytecast_float_to_nat
        • bytecast_nat_to_float
        • divmod
        • len
        • pow
        • round
      • option
        • Option
        • nothing
        • some
      • platform
        • barrier
        • exit
        • panic
        • result
      • qsystem
        • MaybeLeaked
        • measure
        • measure_and_reset
        • measure_leaked
        • phased_x
        • qfree
        • reset
        • rz
        • zz_max
        • zz_phase
        • functional
          • measure
          • measure_and_reset
          • phased_x
          • qfree
          • reset
          • rz
          • zz_max
          • zz_phase
        • random
          • DiscreteDistribution
          • RNG
          • make_discrete_distribution
        • utils
          • get_current_shot
        • wasm
          • spawn_wasm_contexts
      • quantum
        • qubit
        • ch
        • crz
        • cx
        • cy
        • cz
        • discard
        • discard_array
        • h
        • maybe_qubit
        • measure
        • measure_array
        • project_z
        • reset
        • rx
        • ry
        • rz
        • s
        • sdg
        • t
        • tdg
        • toffoli
        • v
        • vdg
        • x
        • y
        • z
        • functional
          • ch
          • crz
          • cx
          • cy
          • cz
          • h
          • project_z
          • reset
          • rx
          • ry
          • rz
          • s
          • sdg
          • t
          • tdg
          • toffoli
          • v
          • vdg
          • x
          • y
          • z
      • quantum_functional
        • h
        • cz
        • cx
        • cy
        • t
        • s
        • v
        • x
        • y
        • z
        • tdg
        • sdg
        • vdg
        • rz
        • rx
        • ry
        • crz
        • toffoli
        • reset
        • project_z
        • ch
      • reflection
        • callable
      • string
        • str
    • Experimental
  • Changelog
  • Migrating to Guppy from pytket
  • FAQs
  • Github
Back to top

sdg¶

guppylang.std.quantum_functional.sdg(q: qubit) → qubit[source]¶

Functional Sdg gate command.

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