|
| RunningPluginState (const RunningPluginState &)=delete |
|
void | operator= (const RunningPluginState &)=delete |
|
| RunningPluginState (RunningPluginState &&)=delete |
|
RunningPluginState & | operator= (RunningPluginState &&)=delete |
|
void | send (ArbData &&message) |
| Sends a message to the host. More...
|
|
void | send (const ArbData &message) |
| Sends a message to the host. More...
|
|
ArbData | recv () |
| Receives a message from the host. More...
|
|
| PluginState (const PluginState &)=delete |
|
void | operator= (const PluginState &)=delete |
|
| PluginState (PluginState &&)=delete |
|
PluginState & | operator= (PluginState &&)=delete |
|
QubitSet | allocate (size_t num_qubits, ArbCmdQueue &&cmds) |
| Allocates a number of downstream qubits, copying in the given command queue as arbitrary additional data for the qubits. More...
|
|
QubitSet | allocate (size_t num_qubits, ArbCmdQueue &cmds) |
| Allocates a number of downstream qubits, moving in the given command queue as arbitrary additional data for the qubits. More...
|
|
QubitSet | allocate (size_t num_qubits) |
| Allocates a number of default downstream qubits. More...
|
|
QubitRef | allocate (ArbCmdQueue &&cmds) |
| Allocates a single downstream qubit, copying in the given command queue as arbitrary additional data for the qubits. More...
|
|
QubitRef | allocate (ArbCmdQueue &cmds) |
| Allocates a single downstream qubit, moving in the given command queue as arbitrary additional data for the qubits. More...
|
|
QubitRef | allocate () |
| Allocates a single downstream qubit. More...
|
|
void | free (QubitSet &&qubits) |
| Frees the given downstream qubits. More...
|
|
void | free (const QubitSet &qubits) |
| Frees the given downstream qubits. More...
|
|
void | free (const QubitRef &qubit) |
| Frees the given downstream qubit. More...
|
|
void | gate (Gate &&gate) |
| Sends a gate to the downstream plugin. More...
|
|
void | gate (const Matrix &matrix, const QubitRef &q) |
| Shorthand for sending a single-qubit gate to the downstream plugin. More...
|
|
void | gate (const Matrix &matrix, const QubitRef &qa, const QubitRef &qb) |
| Shorthand for sending a two-qubit gate to the downstream plugin. More...
|
|
void | gate (const Matrix &matrix, const QubitRef &qa, const QubitRef &qb, const QubitRef &qc) |
| Shorthand for sending a three-qubit gate to the downstream plugin. More...
|
|
void | measure_x (const QubitRef &q) |
| Shorthand for sending a single-qubit X-axis measurement to the downstream plugin. More...
|
|
void | measure_x (const QubitSet &qs) |
| Shorthand for sending a multi-qubit X-axis measurement to the downstream plugin. More...
|
|
void | measure_y (const QubitRef &q) |
| Shorthand for sending a single-qubit Y-axis measurement to the downstream plugin. More...
|
|
void | measure_y (const QubitSet &qs) |
| Shorthand for sending a multi-qubit Y-axis measurement to the downstream plugin. More...
|
|
void | measure_z (const QubitRef &q) |
| Shorthand for sending a single-qubit Z-axis measurement to the downstream plugin. More...
|
|
void | measure_z (QubitSet &&qs) |
| Shorthand for sending a multi-qubit Z-axis measurement to the downstream plugin. More...
|
|
void | measure_z (const QubitSet &qs) |
| Shorthand for sending a multi-qubit Z-axis measurement to the downstream plugin. More...
|
|
Cycle | advance (Cycle cycles) |
| Tells the downstream plugin to run for the specified number of cycles. More...
|
|
ArbData | arb (ArbCmd &&cmd) |
| Sends an arbitrary command downstream. More...
|
|
ArbData | arb (const ArbCmd &cmd) |
| Sends an arbitrary command downstream. More...
|
|
Measurement | get_measurement (const QubitRef &qubit) |
| Returns the latest measurement of the given downstream qubit. More...
|
|
Cycle | get_cycles_since_measure (const QubitRef &qubit) |
| Returns the number of downstream cycles since the latest measurement of the given downstream qubit. More...
|
|
Cycle | get_cycles_between_measures (const QubitRef &qubit) |
| Returns the number of downstream cycles between the last two measurements of the given downstream qubit. More...
|
|
Cycle | get_cycle () |
| Returns the current value of the downstream cycle counter. More...
|
|
| UpstreamPluginState (const UpstreamPluginState &)=delete |
|
void | operator= (const UpstreamPluginState &)=delete |
|
| UpstreamPluginState (UpstreamPluginState &&)=delete |
|
UpstreamPluginState & | operator= (UpstreamPluginState &&)=delete |
|
double | random_f64 () noexcept |
| Generates a random floating point number using the simulator random seed. More...
|
|
uint64_t | random_u64 () noexcept |
| Generates a random integer using the simulator random seed. More...
|
|
template<typename T > |
T | random () noexcept |
| Generates a random value using the simulator random seed. More...
|
|
Wrapper for DQCsim's internal plugin state within the context of the run
callback in a frontend.
Cannot be moved or copied, as it must stay in scope of the plugin callbacks. Can also not be constructed except for by the callback wrapper classes.
Definition at line 6675 of file dqcsim.