pyriemann_qiskit.utils.hyper_params_factory.create_mixer_rotational_XZ_gates

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

Return a mixing operator with XZ gates.

H_{\text{mix}} = \sum_{i}^{N-1} \left( Z_{i-1} X_i - X_i Z_{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