Maestro 0.1.0
Unified interface for quantum circuit simulation
Loading...
Searching...
No Matches
Schedulers::ExecuteJob< Time > Struct Template Reference

A struct representing a job to be executed on a host. More...

#include <Scheduler.h>

Public Types

using NetworkClass = typename Network::INetwork<Time>
using ExecuteResults = typename NetworkClass::ExecuteResults

Public Member Functions

void DoWork ()
size_t GetJobCount () const

Public Attributes

std::shared_ptr< NetworkClasshostNetwork
size_t h = 0
std::shared_ptr< Circuits::Circuit< Time > > circ
size_t nrShots = 0
ExecuteResults results

Detailed Description

template<typename Time = Types::time_type>
struct Schedulers::ExecuteJob< Time >

A struct representing a job to be executed on a host.

A struct representing a job to be executed on a host, containing both the circuit and the number of shots information, also a shared pointer to the network to execute on. Calling DoWork() will execute the job on the host network and store the results in the results member.

Template Parameters
TimeThe time type to use for the network and circuit.
See also
Network::INetwork
Circuits::Circuit

Definition at line 80 of file Scheduler.h.

Member Typedef Documentation

◆ ExecuteResults

template<typename Time = Types::time_type>
using Schedulers::ExecuteJob< Time >::ExecuteResults = typename NetworkClass::ExecuteResults

Definition at line 82 of file Scheduler.h.

◆ NetworkClass

template<typename Time = Types::time_type>
using Schedulers::ExecuteJob< Time >::NetworkClass = typename Network::INetwork<Time>

Definition at line 81 of file Scheduler.h.

Member Function Documentation

◆ DoWork()

template<typename Time = Types::time_type>
void Schedulers::ExecuteJob< Time >::DoWork ( )
inline

Definition at line 90 of file Scheduler.h.

◆ GetJobCount()

template<typename Time = Types::time_type>
size_t Schedulers::ExecuteJob< Time >::GetJobCount ( ) const
inline

Definition at line 97 of file Scheduler.h.

Member Data Documentation

◆ circ

template<typename Time = Types::time_type>
std::shared_ptr<Circuits::Circuit<Time> > Schedulers::ExecuteJob< Time >::circ

Definition at line 86 of file Scheduler.h.

◆ h

template<typename Time = Types::time_type>
size_t Schedulers::ExecuteJob< Time >::h = 0

Definition at line 85 of file Scheduler.h.

◆ hostNetwork

template<typename Time = Types::time_type>
std::shared_ptr<NetworkClass> Schedulers::ExecuteJob< Time >::hostNetwork

Definition at line 84 of file Scheduler.h.

◆ nrShots

template<typename Time = Types::time_type>
size_t Schedulers::ExecuteJob< Time >::nrShots = 0

Definition at line 87 of file Scheduler.h.

◆ results

template<typename Time = Types::time_type>
ExecuteResults Schedulers::ExecuteJob< Time >::results

Definition at line 88 of file Scheduler.h.


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