- class C4XGate(label=None, ctrl_state=None)¶
The 4-qubit controlled X gate.
This implementation is based on Page 21, Lemma 7.5, of .
 Barenco et al., 1995. https://arxiv.org/pdf/quant-ph/9503016.pdf
Create a new 4-qubit controlled X gate.
Return the control state of the gate as a decimal integer.
Get the decompositions of the instruction from the SessionEquivalenceLibrary.
Return definition in terms of other basic gates.
Return gate label
return instruction params.
Add a decomposition of the instruction to the SessionEquivalenceLibrary.
Assemble a QasmQobjInstruction
Validation and handling of the arguments and its relationship.
Add classical condition on register classical and value val.
C4XGate.control([num_ctrl_qubits, label, …])
Controlled version of this gate.
Copy of the instruction.
Invert this gate.
Return True .IFF.
For a composite instruction, reverse the order of sub-gates.
Creates a unitary gate as gate^exponent.
Return a default OpenQASM string for the instruction.
Creates an instruction with gate repeated n amount of times.
Return a Numpy.array for the gate unitary matrix.