qrisp.qaoa.RX_mixer#

RX_mixer(qv, beta)[source]#

Applies an RX gate to each qubit in qv.

The RX gate is a single-qubit rotation about the x-axis. It is used as a mixer in QAOA to drive transitions between different states.

Parameters
qvQuantumVariable

The quantum variable to which the RX gate is applied.

betafloat or sympy.Symbol

The phase shift value for the RX gate.

Returns
qvQuantumVariable

The quantum variable after applying the RX gate.