MSGate¶

class MSGate(**kwargs)[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

 MSGate.decompositions Get the decompositions of the instruction from the SessionEquivalenceLibrary. MSGate.definition Return definition in terms of other basic gates. MSGate.label Return gate label MSGate.params 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. DEPRECATED: use instruction.reverse_ops(). 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. For a composite instruction, reverse the order of sub-instructions. Return a Numpy.array for the gate unitary matrix.