|
Maestro 0.3.11
Unified interface for quantum circuit simulation
|
Classes | |
| struct | Options |
| class | Prepared |
| class | ProbabilityAlias |
Typedefs | |
| template<bool Many> | |
| using | Counts = std::unordered_map<std::conditional_t<Many, std::vector<bool>, Types::qubit_t>, Types::qubit_t> |
Enumerations | |
| enum class | Family { Auto , Cdf , Alias } |
Functions | |
| void | CheckMass (double total) |
| template<bool Many, class Plan, class Bit, class Uniform> | |
| Counts< Many > | Count (const Plan &plan, size_t shots, size_t bits, const Bit &bit, Uniform &&uniform) |
| template<bool Many, class Range, class Probability, class Bit, class Uniform> | |
| Counts< Many > | CountCdfRange (const Range &rows, size_t shots, size_t bits, const Probability &probability, const Bit &bit, Uniform &&uniform, Options options={}) |
| template<bool Many, class Bit> | |
| Counts< Many > | Single (size_t bits, const Bit &bit) |
| int | Threads (bool permitted, size_t work) |
| template<class Qubits> | |
| void | ValidateQubits (const Qubits &qubits, size_t width, bool many) |
| bool | ValidateSetting (std::string_view name, std::string_view setting) |
| struct Utils::Sampling::Options |
Definition at line 35 of file Sampling.h.
| Class Members | ||
|---|---|---|
| size_t | batchSize = size_t{1} << 20 | |
| Family | family = Family::Auto | |
| size_t | memoryBytes = size_t{256} << 20 | |
| bool | multithreading = false | |
| using Utils::Sampling::Counts = std::unordered_map<std::conditional_t<Many, std::vector<bool>, Types::qubit_t>, Types::qubit_t> |
Definition at line 373 of file Sampling.h.
|
strong |
| Enumerator | |
|---|---|
| Auto | |
| Cdf | |
| Alias | |
Definition at line 28 of file Sampling.h.
|
inline |
Definition at line 80 of file Sampling.h.
| Counts< Many > Utils::Sampling::Count | ( | const Plan & | plan, |
| size_t | shots, | ||
| size_t | bits, | ||
| const Bit & | bit, | ||
| Uniform && | uniform ) |
Definition at line 472 of file Sampling.h.
| Counts< Many > Utils::Sampling::CountCdfRange | ( | const Range & | rows, |
| size_t | shots, | ||
| size_t | bits, | ||
| const Probability & | probability, | ||
| const Bit & | bit, | ||
| Uniform && | uniform, | ||
| Options | options = {} ) |
Definition at line 407 of file Sampling.h.
References Probability().
| Counts< Many > Utils::Sampling::Single | ( | size_t | bits, |
| const Bit & | bit ) |
Definition at line 375 of file Sampling.h.
|
inline |
Definition at line 65 of file Sampling.h.
Referenced by Count().
| void Utils::Sampling::ValidateQubits | ( | const Qubits & | qubits, |
| size_t | width, | ||
| bool | many ) |
Definition at line 394 of file Sampling.h.
|
inline |
Definition at line 45 of file Sampling.h.