qpe_toolbox.circuit.custom_gates¶
Custom two-qubit gates registered with quimb’s gate registry.
Functions¶
|
Return the |
Register the |
Module Contents¶
- qpe_toolbox.circuit.custom_gates.su4swap_gate_param_gen(params)[source]¶
Return the
SU4SWAPgate array, a general two-qubit gate rooted at identity.Equivalent to swapping the two output legs of quimb’s 15-parameter
SU4gate, so it tends to the identity as its parameters go to zero. It spans the same manifold asSU4(a subset of U(4)) and carries a free phase, so its determinant is not 1 (not literally an SU(4) gate).- Parameters:
params (array_like) – The 15 real parameters of the underlying
SU4gate.- Returns:
The gate as a
(2, 2, 2, 2)array, on the same backend asparams.- Return type:
array_like