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.

MSGate.assemble()

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.

MSGate.inverse()

Invert this instruction.

MSGate.is_parameterized()

Return True .IFF.

MSGate.mirror()

DEPRECATED: use instruction.reverse_ops().

MSGate.power(exponent)

Creates a unitary gate as gate^exponent.

MSGate.qasm()

Return a default OpenQASM string for the instruction.

MSGate.repeat(n)

Creates an instruction with gate repeated n amount of times.

MSGate.reverse_ops()

For a composite instruction, reverse the order of sub-instructions.

MSGate.to_matrix()

Return a Numpy.array for the gate unitary matrix.