View source on GitHub |
Interoperability between cirq and the openfermion-fqe. This takes a
fqe.from_cirq(
state: numpy.ndarray,
thresh: float
) -> "wavefunction.Wavefunction"
cirq wavefunction and creates an FQE wavefunction object initialized with the correct data.
Args | |
---|---|
state (numpy.array(dtype=numpy.complex128)) - a cirq wavefunction
thresh (double) - set the limit at which a cirq element should be considered zero and not make a contribution to the FQE wavefunction |
Returns | |
---|---|
openfermion-fqe.Wavefunction |