pyriemann_qiskit.utils.hyper_params_factory.create_mixer_rotational_XY_gates

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

Return the XY mixer.

H_{XY} = \sum_{i}^{N-1} \left( X_i X_{i+1} + Y_i Y_{i+1} \right),

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