openfermion.circuits.optimal_givens_decomposition

Implement a circuit that provides the unitary that is generated by single-particle fermion generators

Used in the notebooks

Used in the tutorials

\[ U(v) = exp(log(v)_{p,q}(a_{p}^{\dagger}a_{q} - a_{q}^{\dagger}a_{p}) \]

This can be used for implementing an exact single-body basis rotation

qubits Sequence of qubits to apply the operations over. The qubits should be ordered in linear physical order. unitary: