View source on GitHub |
Interoperability between cirq and the openfermion-fqe. This takes an
fqe.to_cirq(
wfn: "wavefunction.Wavefunction"
) -> numpy.ndarray
FQE wavefunction and returns a cirq compatible wavefunction based on the information stored within.
Args | |
---|---|
wfn (wavefunction.Wavefunction) - a openfermion-fqe wavefunction object |
Returns | |
---|---|
numpy.array(dtype=numpy.complex128) - a cirq wavefunction that can be used in a simulator object. |