qiskit-documentation/docs/api/qiskit/0.29/qiskit.circuit.library.RC3X...

65 lines
1.7 KiB
Plaintext

---
title: RC3XGate (v0.29)
description: API reference for qiskit.circuit.library.RC3XGate in qiskit v0.29
in_page_toc_min_heading_level: 1
python_api_type: class
python_api_name: qiskit.circuit.library.RC3XGate
---
# RC3XGate
<Class id="qiskit.circuit.library.RC3XGate" isDedicatedPage={true} github="https://github.com/qiskit/qiskit/tree/stable/0.18/qiskit/circuit/library/standard_gates/x.py" signature="RC3XGate(label=None)" modifiers="class">
Bases: `qiskit.circuit.gate.Gate`
The simplified 3-controlled Toffoli gate.
The simplified Toffoli gate implements the Toffoli gate up to relative phases. Note, that the simplified Toffoli is not equivalent to the Toffoli. But can be used in places where the Toffoli gate is uncomputed again.
This concrete implementation is from [https://arxiv.org/abs/1508.03273](https://arxiv.org/abs/1508.03273), the complete circuit of Fig. 4.
Create a new RC3X gate.
## Attributes
### decompositions
<Attribute id="qiskit.circuit.library.RC3XGate.decompositions">
Get the decompositions of the instruction from the SessionEquivalenceLibrary.
</Attribute>
### definition
<Attribute id="qiskit.circuit.library.RC3XGate.definition">
Return definition in terms of other basic gates.
</Attribute>
### duration
<Attribute id="qiskit.circuit.library.RC3XGate.duration">
Get the duration.
</Attribute>
### label
<Attribute id="qiskit.circuit.library.RC3XGate.label">
Return instruction label
**Return type**
`str`
</Attribute>
### params
<Attribute id="qiskit.circuit.library.RC3XGate.params">
return instruction params.
</Attribute>
### unit
<Attribute id="qiskit.circuit.library.RC3XGate.unit">
Get the time unit of duration.
</Attribute>
</Class>