pyriemann_qiskit.utils.hyper_params_factory.create_mixer_rotational_X_gates

pyriemann_qiskit.utils.hyper_params_factory.create_mixer_rotational_X_gates(angle)[source]

Return the default mixing operator with QAOA.

H_X = \sum_{i}^{N} X_i

See [1] for details.

Parameters:

angle (float) – The angle of the gates’ rotation.

Returns:

mixer – A method that create the mixer with the correct angle. This method takes into parameters the number of qubits in the circuit, and a parameter use_params. if True, use_params create a Parameter in the circuit (same for all gates)

Return type:

Callable[[int, boolean], QuantumCircuit]

Notes

Added in version 0.4.0.

References