ECF 1.5
QuantumEvalOp.h
1#ifndef QuantumEvalOp_h
2#define QuantumEvalOp_h
3
4// for Windows development only
5#define SIMULATION
6
8{
9public:
10 void registerParameters(StateP);
11 FitnessP evaluate(IndividualP individual);
12 bool initialize(StateP);
13
14 StateP state_;
15
16 uint nWires;
17 uint nWiresA, nWiresB;
18 uint nGatesA, nGatesB;
19};
20typedef boost::shared_ptr<QuantumEvalOp> QuantumEvalOpP;
21
22
23#endif // QuantumEvalOp_h
Evaluation base class.
Definition: EvaluateOp.h:17
void registerParameters(StateP)
Register evaluator parameters. Called before EvaluateOp::initialize method.
bool initialize(StateP)
Initialize the evaluator. Called before first evaluation occurs.
FitnessP evaluate(IndividualP individual)
Evaluate a single individual. Method must create and return a Fitness object.