Maestro 0.2.5
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>

+ Collaboration diagram for Schedulers::ExecuteJob< Time >:

Public Types

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

Public Member Functions

void DoWork ()
 
size_t GetJobCount () const
 

Public Attributes

std::shared_ptr< Circuits::Circuit< Time > > circ
 
size_t h = 0
 
std::shared_ptr< NetworkClasshostNetwork
 
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 85 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 87 of file Scheduler.h.

◆ NetworkClass

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

Definition at line 86 of file Scheduler.h.

Member Function Documentation

◆ DoWork()

◆ GetJobCount()

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

Definition at line 101 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 91 of file Scheduler.h.

Referenced by Schedulers::ExecuteJob< Time >::DoWork().

◆ h

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

Definition at line 90 of file Scheduler.h.

Referenced by Schedulers::ExecuteJob< Time >::DoWork().

◆ hostNetwork

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

Definition at line 89 of file Scheduler.h.

Referenced by Schedulers::ExecuteJob< Time >::DoWork().

◆ nrShots

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

Definition at line 92 of file Scheduler.h.

Referenced by Schedulers::ExecuteJob< Time >::DoWork().

◆ results

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

Definition at line 93 of file Scheduler.h.

Referenced by Schedulers::ExecuteJob< Time >::DoWork().


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