Skip to main content

check_memory_availability

Function check_memory_availability 

Source
pub fn check_memory_availability(num_qubits: usize) -> bool
Expand description

Check if system has sufficient memory for simulation.

Queries the real, currently-available system memory (via get_available_memory) rather than assuming a fixed capacity, so this honestly reflects the host the simulation actually runs on.