Complex amplitude initialization.
Class that implements the (complex amplitude) initialization of some flexible collection of qubit registers (assuming the qubits are in the zero state). Note that Initialize is an Instruction and not a Gate since it contains a reset instruction, which is not unitary.
Create new initialize composite.
params (list): vector of complex amplitudes to initialize to
Get the decompositions of the instruction from the SessionEquivalenceLibrary.
Return definition in terms of other basic gates.
return instruction params.
Add a decomposition of the instruction to the SessionEquivalenceLibrary.
Assemble a QasmQobjInstruction
Validation of the arguments.
Add classical condition on register classical and value val.
Copy of the instruction.
Call to create a circuit with gates that take the desired vector to zero.
Invert this instruction.
Return True .IFF.
DEPRECATED: use instruction.reverse_ops().
Return a default OpenQASM string for the instruction.
Creates an instruction with gate repeated n amount of times.
For a composite instruction, reverse the order of sub-instructions.