@@ -211,7 +211,7 @@ namespace Quantum
211211 {
212212 if (this ->simulatorId != NULL_SIMULATORID)
213213 {
214- typedef unsigned (*TDestroy)(unsigned );
214+ typedef void (*TDestroy)(unsigned );
215215 static TDestroy destroySimulatorInstance =
216216 reinterpret_cast <TDestroy>(LoadProc (this ->handle , " destroy" ));
217217 assert (destroySimulatorInstance);
@@ -226,7 +226,7 @@ namespace Quantum
226226 // Deprecated, use `DumpMachine()` and `DumpRegister()` instead.
227227 void GetState (TGetStateCallback callback) override
228228 {
229- typedef bool (*TDump)(unsigned , TGetStateCallback);
229+ typedef void (*TDump)(unsigned , TGetStateCallback);
230230 static TDump dump = reinterpret_cast <TDump>(this ->GetProc (" Dump" ));
231231 dump (this ->simulatorId , callback);
232232 }
@@ -462,7 +462,7 @@ namespace Quantum
462462
463463 void R (PauliId axis, QubitIdType target, double theta) override
464464 {
465- typedef unsigned (*TR)(unsigned , unsigned , double , unsigned );
465+ typedef void (*TR)(unsigned , unsigned , double , unsigned );
466466 static TR r = reinterpret_cast <TR>(this ->GetProc (" R" ));
467467
468468 r (this ->simulatorId , GetBasis (axis), theta, GetQubitId (target));
@@ -472,7 +472,7 @@ namespace Quantum
472472 void ControlledR (long numControls, QubitIdType controls[], PauliId axis, QubitIdType target,
473473 double theta) override
474474 {
475- typedef unsigned (*TMCR)(unsigned , unsigned , double , unsigned , unsigned *, unsigned );
475+ typedef void (*TMCR)(unsigned , unsigned , double , unsigned , unsigned *, unsigned );
476476 static TMCR cr = reinterpret_cast <TMCR>(this ->GetProc (" MCR" ));
477477
478478 std::vector<unsigned > ids = GetQubitIds (numControls, controls);
@@ -483,7 +483,7 @@ namespace Quantum
483483
484484 void Exp (long numTargets, PauliId paulis[], QubitIdType targets[], double theta) override
485485 {
486- typedef unsigned (*TExp)(unsigned , unsigned , unsigned *, double , unsigned *);
486+ typedef void (*TExp)(unsigned , unsigned , unsigned *, double , unsigned *);
487487 static TExp exp = reinterpret_cast <TExp>(this ->GetProc (" Exp" ));
488488 std::vector<unsigned > ids = GetQubitIds (numTargets, targets);
489489 std::vector<unsigned > convertedBases = GetBases (numTargets, paulis);
@@ -494,7 +494,7 @@ namespace Quantum
494494 void ControlledExp (long numControls, QubitIdType controls[], long numTargets, PauliId paulis[],
495495 QubitIdType targets[], double theta) override
496496 {
497- typedef unsigned (*TMCExp)(unsigned , unsigned , unsigned *, double , unsigned , unsigned *, unsigned *);
497+ typedef void (*TMCExp)(unsigned , unsigned , unsigned *, double , unsigned , unsigned *, unsigned *);
498498 static TMCExp cexp = reinterpret_cast <TMCExp>(this ->GetProc (" MCExp" ));
499499 std::vector<unsigned > idsTargets = GetQubitIds (numTargets, targets);
500500 std::vector<unsigned > idsControls = GetQubitIds (numControls, controls);
0 commit comments