qat.core.simutil.wavefunction
- qat.core.simutil.wavefunction(circuit, qpu, probs=False)
Simulate a circuit perfectly with a given QPU, returning the resulting wavefunction.
- Parameters
circuit (
Circuit
) – a circuitqpu (QPU) – a QPU
probs (boolean, optional) – whether to return probabilities instead of complex amplitudes. Defaults to False.
- Returns
the 2^nqbits vector of amplitudes / probs
- Return type
np.array
Note
This method is available as an application in Qaptiva Access.