RCCXGate¶
- class RCCXGate(label=None)[소스]¶
기반 클래스:
Gate
The simplified Toffoli gate, also referred to as Margolus gate.
The simplified Toffoli gate implements the Toffoli gate up to relative phases. This implementation requires three CX gates which is the minimal amount possible, as shown in https://arxiv.org/abs/quant-ph/0312225. 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, the dashed box of Fig. 3.
Create a new simplified CCX gate.
Attributes
- decompositions¶
Get the decompositions of the instruction from the SessionEquivalenceLibrary.
- definition¶
Return definition in terms of other basic gates.
- duration¶
Get the duration.
- label¶
Return instruction label
- 반환 형식
str
- name¶
Return the name.
- num_clbits¶
Return the number of clbits.
- num_qubits¶
Return the number of qubits.
- params¶
return instruction params.
- unit¶
Get the time unit of duration.