Maestro 0.1.0
Unified interface for quantum circuit simulation
Loading...
Searching...
No Matches
avoid_init_allocator Class Reference

An allocator that avoids initializing the allocated memory. More...

#include <State.h>

Detailed Description

An allocator that avoids initializing the allocated memory.

This allocator is used to avoid initializing the allocated memory. It is used to avoid initializing the memory when the state is initialized with a vector of amplitudes. std::vector will initialize the memory with 0, which is not needed when the values in the vector are set right after the allocation.

See also
IState::InitializeState

The documentation for this class was generated from the following file: