View source on GitHub |
Generate a cirq wavefunction from the vacuum given qubit operators and a
fqe.cirq_utils.qubit_wavefunction_from_vacuum(
ops: "QubitOperator",
qubits: List['LineQubit']
) -> numpy.ndarray
set of qubits that this wavefunction will be represented on
Args | |
---|---|
ops (QubitOperators) - a sum of qubit operations with coefficients scheduling the creation of the qubit wavefunction
qubits (Qid) - the qubits of the quantum computer |
Returns | |
---|---|
final_state (numpy.array(dtype=numpy.complex64)) - the fully projected wavefunction in the cirq representation |