View source on GitHub |
For each availble FqeData structure, find the projection onto the cirq
fqe.transform.from_cirq(
wfn: "Wavefunction",
state: numpy.ndarray
) -> None
wavefunction and set the coefficients to the proper value.
Args | |
---|---|
wfn (wavefunction.Wavefunction) - an Fqe Wavefunction to fill from the cirq wavefunction
state (numpy.array(numpy.dtype=complex64)) - a cirq state to convert into an Fqe wavefunction |
Returns | |
---|---|
nothing - mutates the wfn in place |