MSGate¶
- class MSGate(num_qubits, theta, *, n_qubits=None, label=None)[source]¶
Global Mølmer–Sørensen gate.
The Mølmer–Sørensen gate is native to ion-trap systems. The global MS can be applied to multiple ions to entangle multiple qubits simultaneously.
In the two-qubit case, this is equivalent to an XX(theta) interaction, and is thus reduced to the RXXGate.
Create new MS gate.
Attributes
Get the decompositions of the instruction from the SessionEquivalenceLibrary.
Return definition in terms of other basic gates.
Return gate label
return instruction params.
Methods
MSGate.add_decomposition
(decomposition)Add a decomposition of the instruction to the SessionEquivalenceLibrary.
Assemble a QasmQobjInstruction
MSGate.broadcast_arguments
(qargs, cargs)Validation and handling of the arguments and its relationship.
MSGate.c_if
(classical, val)Add classical condition on register classical and value val.
MSGate.control
([num_ctrl_qubits, label, …])Return controlled version of gate.
MSGate.copy
([name])Copy of the instruction.
Invert this instruction.
Return True .IFF.
For a composite instruction, reverse the order of sub-gates.
MSGate.power
(exponent)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.