92 lines
1.9 KiB
Plaintext
92 lines
1.9 KiB
Plaintext
---
|
|
title: SdgGate
|
|
description: API reference for qiskit.circuit.library.SdgGate
|
|
in_page_toc_min_heading_level: 1
|
|
python_api_type: class
|
|
python_api_name: qiskit.circuit.library.SdgGate
|
|
---
|
|
|
|
# SdgGate
|
|
|
|
<Class id="qiskit.circuit.library.SdgGate" isDedicatedPage={true} github="https://github.com/qiskit/qiskit/tree/stable/0.18/qiskit/circuit/library/standard_gates/s.py" signature="SdgGate(label=None)" modifiers="class">
|
|
Bases: `qiskit.circuit.gate.Gate`
|
|
|
|
Single qubit S-adjoint gate (\~Z\*\*0.5).
|
|
|
|
It induces a $-\pi/2$ phase.
|
|
|
|
This is a Clifford gate and a square-root of Pauli-Z.
|
|
|
|
**Matrix Representation:**
|
|
|
|
$$
|
|
\begin{split}Sdg = \begin{pmatrix}
|
|
1 & 0 \\
|
|
0 & -i
|
|
\end{pmatrix}\end{split}
|
|
$$
|
|
|
|
**Circuit symbol:**
|
|
|
|
```python
|
|
┌─────┐
|
|
q_0: ┤ Sdg ├
|
|
└─────┘
|
|
```
|
|
|
|
Equivalent to a $\pi/2$ radian rotation about the Z axis.
|
|
|
|
Create new Sdg gate.
|
|
|
|
## Methods Defined Here
|
|
|
|
### inverse
|
|
|
|
<Function id="qiskit.circuit.library.SdgGate.inverse" signature="SdgGate.inverse()">
|
|
Return inverse of Sdg (SGate).
|
|
</Function>
|
|
|
|
## Attributes
|
|
|
|
### decompositions
|
|
|
|
<Attribute id="qiskit.circuit.library.SdgGate.decompositions">
|
|
Get the decompositions of the instruction from the SessionEquivalenceLibrary.
|
|
</Attribute>
|
|
|
|
### definition
|
|
|
|
<Attribute id="qiskit.circuit.library.SdgGate.definition">
|
|
Return definition in terms of other basic gates.
|
|
</Attribute>
|
|
|
|
### duration
|
|
|
|
<Attribute id="qiskit.circuit.library.SdgGate.duration">
|
|
Get the duration.
|
|
</Attribute>
|
|
|
|
### label
|
|
|
|
<Attribute id="qiskit.circuit.library.SdgGate.label">
|
|
Return instruction label
|
|
|
|
**Return type**
|
|
|
|
`str`
|
|
</Attribute>
|
|
|
|
### params
|
|
|
|
<Attribute id="qiskit.circuit.library.SdgGate.params">
|
|
return instruction params.
|
|
</Attribute>
|
|
|
|
### unit
|
|
|
|
<Attribute id="qiskit.circuit.library.SdgGate.unit">
|
|
Get the time unit of duration.
|
|
</Attribute>
|
|
</Class>
|
|
|