Skip to main content

simulate_statevector

Function simulate_statevector 

Source
pub fn simulate_statevector(
    circuit: &ParameterizedQuantumCircuit,
) -> DeviceResult<Vec<Complex64>>
Expand description

Simulate a ParameterizedQuantumCircuit from the all-zero state and return the resulting amplitude vector of length 2^num_qubits.

Amplitudes are indexed in the little-endian convention used throughout the framework: qubit q is bit q of the basis index (so qubit 0 is the least significant bit).