View source on GitHub |
Implement a circuit that provides the unitary that is generated by single-particle fermion generators
openfermion.circuits.optimal_givens_decomposition(
qubits: Sequence[cirq.Qid], unitary: numpy.ndarray
) -> Iterable[cirq.Operation]
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
Args | |
---|---|
qubits
|
Sequence of qubits to apply the operations over. The qubits should be ordered in linear physical order. unitary: |