|
Maestro 0.1.0
Unified interface for quantum circuit simulation
|
Go to the source code of this file.
Macros | |
| #define | _MAESTRO_INTERFACE_H_ |
Functions | |
| void * | GetMaestroObject () |
| void * | GetMaestroObjectWithMute () |
| unsigned long int | CreateSimpleSimulator (int nrQubits) |
| void | DestroySimpleSimulator (unsigned long int simHandle) |
| int | RemoveAllOptimizationSimulatorsAndAdd (unsigned long int simHandle, int simType, int simExecType) |
| int | AddOptimizationSimulator (unsigned long int simHandle, int simType, int simExecType) |
| char * | SimpleExecute (unsigned long int simpleSim, const char *circuitStr, const char *jsonConfig) |
| void | FreeResult (char *result) |
| unsigned long int | CreateSimulator (int simType, int simExecType) |
| void * | GetSimulator (unsigned long int simHandle) |
| void | DestroySimulator (unsigned long int simHandle) |
| int | InitializeSimulator (void *sim) |
| int | ResetSimulator (void *sim) |
| int | ConfigureSimulator (void *sim, const char *key, const char *value) |
| char * | GetConfiguration (void *sim, const char *key) |
| unsigned long int | AllocateQubits (void *sim, unsigned long int nrQubits) |
| unsigned long int | GetNumberOfQubits (void *sim) |
| int | ClearSimulator (void *sim) |
| unsigned long long int | Measure (void *sim, const unsigned long int *qubits, unsigned long int nrQubits) |
| int | ApplyReset (void *sim, const unsigned long int *qubits, unsigned long int nrQubits) |
| double | Probability (void *sim, unsigned long long int outcome) |
| void | FreeDoubleVector (double *vec) |
| void | FreeULLIVector (unsigned long long int *vec) |
| double * | Amplitude (void *sim, unsigned long long int outcome) |
| double * | AllProbabilities (void *sim) |
| double * | Probabilities (void *sim, const unsigned long long int *qubits, unsigned long int nrQubits) |
| unsigned long long int * | SampleCounts (void *sim, const unsigned long long int *qubits, unsigned long int nrQubits, unsigned long int shots) |
| int | GetSimulatorType (void *sim) |
| int | GetSimulationType (void *sim) |
| int | FlushSimulator (void *sim) |
| int | SaveStateToInternalDestructive (void *sim) |
| int | RestoreInternalDestructiveSavedState (void *sim) |
| int | SaveState (void *sim) |
| int | RestoreState (void *sim) |
| int | SetMultithreading (void *sim, int multithreading) |
| int | GetMultithreading (void *sim) |
| int | IsQcsim (void *sim) |
| unsigned long long int | MeasureNoCollapse (void *sim) |
| int | ApplyX (void *sim, int qubit) |
| int | ApplyY (void *sim, int qubit) |
| int | ApplyZ (void *sim, int qubit) |
| int | ApplyH (void *sim, int qubit) |
| int | ApplyS (void *sim, int qubit) |
| int | ApplySDG (void *sim, int qubit) |
| int | ApplyT (void *sim, int qubit) |
| int | ApplyTDG (void *sim, int qubit) |
| int | ApplySX (void *sim, int qubit) |
| int | ApplySXDG (void *sim, int qubit) |
| int | ApplyK (void *sim, int qubit) |
| int | ApplyP (void *sim, int qubit, double theta) |
| int | ApplyRx (void *sim, int qubit, double theta) |
| int | ApplyRy (void *sim, int qubit, double theta) |
| int | ApplyRz (void *sim, int qubit, double theta) |
| int | ApplyU (void *sim, int qubit, double theta, double phi, double lambda, double gamma) |
| int | ApplyCX (void *sim, int controlQubit, int targetQubit) |
| int | ApplyCY (void *sim, int controlQubit, int targetQubit) |
| int | ApplyCZ (void *sim, int controlQubit, int targetQubit) |
| int | ApplyCH (void *sim, int controlQubit, int targetQubit) |
| int | ApplyCSX (void *sim, int controlQubit, int targetQubit) |
| int | ApplyCSXDG (void *sim, int controlQubit, int targetQubit) |
| int | ApplyCP (void *sim, int controlQubit, int targetQubit, double theta) |
| int | ApplyCRx (void *sim, int controlQubit, int targetQubit, double theta) |
| int | ApplyCRy (void *sim, int controlQubit, int targetQubit, double theta) |
| int | ApplyCRz (void *sim, int controlQubit, int targetQubit, double theta) |
| int | ApplyCCX (void *sim, int controlQubit1, int controlQubit2, int targetQubit) |
| int | ApplySwap (void *sim, int qubit1, int qubit2) |
| int | ApplyCSwap (void *sim, int controlQubit, int qubit1, int qubit2) |
| int | ApplyCU (void *sim, int controlQubit, int targetQubit, double theta, double phi, double lambda, double gamma) |
| #define _MAESTRO_INTERFACE_H_ |
Definition at line 12 of file Interface.h.
| int AddOptimizationSimulator | ( | unsigned long int | simHandle, |
| int | simType, | ||
| int | simExecType ) |
Definition at line 89 of file Interface.cpp.
| unsigned long int AllocateQubits | ( | void * | sim, |
| unsigned long int | nrQubits ) |
Definition at line 630 of file Interface.cpp.
| double * AllProbabilities | ( | void * | sim | ) |
Definition at line 707 of file Interface.cpp.
| double * Amplitude | ( | void * | sim, |
| unsigned long long int | outcome ) |
Definition at line 695 of file Interface.cpp.
| int ApplyCCX | ( | void * | sim, |
| int | controlQubit1, | ||
| int | controlQubit2, | ||
| int | targetQubit ) |
Definition at line 551 of file Interface.cpp.
| int ApplyCH | ( | void * | sim, |
| int | controlQubit, | ||
| int | targetQubit ) |
Definition at line 484 of file Interface.cpp.
| int ApplyCP | ( | void * | sim, |
| int | controlQubit, | ||
| int | targetQubit, | ||
| double | theta ) |
Definition at line 511 of file Interface.cpp.
| int ApplyCRx | ( | void * | sim, |
| int | controlQubit, | ||
| int | targetQubit, | ||
| double | theta ) |
Definition at line 521 of file Interface.cpp.
| int ApplyCRy | ( | void * | sim, |
| int | controlQubit, | ||
| int | targetQubit, | ||
| double | theta ) |
Definition at line 531 of file Interface.cpp.
| int ApplyCRz | ( | void * | sim, |
| int | controlQubit, | ||
| int | targetQubit, | ||
| double | theta ) |
Definition at line 541 of file Interface.cpp.
| int ApplyCSwap | ( | void * | sim, |
| int | controlQubit, | ||
| int | qubit1, | ||
| int | qubit2 ) |
Definition at line 570 of file Interface.cpp.
| int ApplyCSX | ( | void * | sim, |
| int | controlQubit, | ||
| int | targetQubit ) |
Definition at line 493 of file Interface.cpp.
| int ApplyCSXDG | ( | void * | sim, |
| int | controlQubit, | ||
| int | targetQubit ) |
Definition at line 502 of file Interface.cpp.
| int ApplyCU | ( | void * | sim, |
| int | controlQubit, | ||
| int | targetQubit, | ||
| double | theta, | ||
| double | phi, | ||
| double | lambda, | ||
| double | gamma ) |
Definition at line 579 of file Interface.cpp.
| int ApplyCX | ( | void * | sim, |
| int | controlQubit, | ||
| int | targetQubit ) |
Definition at line 457 of file Interface.cpp.
| int ApplyCY | ( | void * | sim, |
| int | controlQubit, | ||
| int | targetQubit ) |
Definition at line 466 of file Interface.cpp.
| int ApplyCZ | ( | void * | sim, |
| int | controlQubit, | ||
| int | targetQubit ) |
Definition at line 475 of file Interface.cpp.
| int ApplyH | ( | void * | sim, |
| int | qubit ) |
Definition at line 339 of file Interface.cpp.
| int ApplyK | ( | void * | sim, |
| int | qubit ) |
Definition at line 402 of file Interface.cpp.
| int ApplyP | ( | void * | sim, |
| int | qubit, | ||
| double | theta ) |
Definition at line 411 of file Interface.cpp.
| int ApplyReset | ( | void * | sim, |
| const unsigned long int * | qubits, | ||
| unsigned long int | nrQubits ) |
Definition at line 667 of file Interface.cpp.
| int ApplyRx | ( | void * | sim, |
| int | qubit, | ||
| double | theta ) |
Definition at line 420 of file Interface.cpp.
| int ApplyRy | ( | void * | sim, |
| int | qubit, | ||
| double | theta ) |
Definition at line 429 of file Interface.cpp.
| int ApplyRz | ( | void * | sim, |
| int | qubit, | ||
| double | theta ) |
Definition at line 438 of file Interface.cpp.
| int ApplyS | ( | void * | sim, |
| int | qubit ) |
Definition at line 348 of file Interface.cpp.
| int ApplySDG | ( | void * | sim, |
| int | qubit ) |
Definition at line 357 of file Interface.cpp.
| int ApplySwap | ( | void * | sim, |
| int | qubit1, | ||
| int | qubit2 ) |
Definition at line 561 of file Interface.cpp.
| int ApplySX | ( | void * | sim, |
| int | qubit ) |
Definition at line 384 of file Interface.cpp.
| int ApplySXDG | ( | void * | sim, |
| int | qubit ) |
Definition at line 393 of file Interface.cpp.
| int ApplyT | ( | void * | sim, |
| int | qubit ) |
Definition at line 366 of file Interface.cpp.
| int ApplyTDG | ( | void * | sim, |
| int | qubit ) |
Definition at line 375 of file Interface.cpp.
| int ApplyU | ( | void * | sim, |
| int | qubit, | ||
| double | theta, | ||
| double | phi, | ||
| double | lambda, | ||
| double | gamma ) |
Definition at line 447 of file Interface.cpp.
| int ApplyX | ( | void * | sim, |
| int | qubit ) |
Definition at line 311 of file Interface.cpp.
| int ApplyY | ( | void * | sim, |
| int | qubit ) |
Definition at line 321 of file Interface.cpp.
| int ApplyZ | ( | void * | sim, |
| int | qubit ) |
Definition at line 330 of file Interface.cpp.
| int ClearSimulator | ( | void * | sim | ) |
Definition at line 648 of file Interface.cpp.
| int ConfigureSimulator | ( | void * | sim, |
| const char * | key, | ||
| const char * | value ) |
Definition at line 605 of file Interface.cpp.
| unsigned long int CreateSimpleSimulator | ( | int | nrQubits | ) |
Definition at line 64 of file Interface.cpp.
| unsigned long int CreateSimulator | ( | int | simType, |
| int | simExecType ) |
Definition at line 290 of file Interface.cpp.
| void DestroySimpleSimulator | ( | unsigned long int | simHandle | ) |
Definition at line 71 of file Interface.cpp.
| void DestroySimulator | ( | unsigned long int | simHandle | ) |
Definition at line 305 of file Interface.cpp.
| int FlushSimulator | ( | void * | sim | ) |
Definition at line 768 of file Interface.cpp.
| void FreeDoubleVector | ( | double * | vec | ) |
Definition at line 685 of file Interface.cpp.
| void FreeResult | ( | char * | result | ) |
Definition at line 285 of file Interface.cpp.
| void FreeULLIVector | ( | unsigned long long int * | vec | ) |
Definition at line 690 of file Interface.cpp.
| char * GetConfiguration | ( | void * | sim, |
| const char * | key ) |
Definition at line 614 of file Interface.cpp.
| void * GetMaestroObject | ( | ) |
Definition at line 32 of file Interface.cpp.
| void * GetMaestroObjectWithMute | ( | ) |
Definition at line 48 of file Interface.cpp.
| int GetMultithreading | ( | void * | sim | ) |
Definition at line 816 of file Interface.cpp.
| unsigned long int GetNumberOfQubits | ( | void * | sim | ) |
Definition at line 640 of file Interface.cpp.
| int GetSimulationType | ( | void * | sim | ) |
Definition at line 761 of file Interface.cpp.
| void * GetSimulator | ( | unsigned long int | simHandle | ) |
Definition at line 299 of file Interface.cpp.
| int GetSimulatorType | ( | void * | sim | ) |
Definition at line 754 of file Interface.cpp.
| int InitializeSimulator | ( | void * | sim | ) |
Definition at line 589 of file Interface.cpp.
| int IsQcsim | ( | void * | sim | ) |
Definition at line 823 of file Interface.cpp.
| unsigned long long int Measure | ( | void * | sim, |
| const unsigned long int * | qubits, | ||
| unsigned long int | nrQubits ) |
Definition at line 656 of file Interface.cpp.
| unsigned long long int MeasureNoCollapse | ( | void * | sim | ) |
Definition at line 830 of file Interface.cpp.
| double * Probabilities | ( | void * | sim, |
| const unsigned long long int * | qubits, | ||
| unsigned long int | nrQubits ) |
Definition at line 718 of file Interface.cpp.
| double Probability | ( | void * | sim, |
| unsigned long long int | outcome ) |
Definition at line 677 of file Interface.cpp.
| int RemoveAllOptimizationSimulatorsAndAdd | ( | unsigned long int | simHandle, |
| int | simType, | ||
| int | simExecType ) |
Definition at line 79 of file Interface.cpp.
| int ResetSimulator | ( | void * | sim | ) |
Definition at line 597 of file Interface.cpp.
| int RestoreInternalDestructiveSavedState | ( | void * | sim | ) |
Definition at line 784 of file Interface.cpp.
| int RestoreState | ( | void * | sim | ) |
Definition at line 800 of file Interface.cpp.
| unsigned long long int * SampleCounts | ( | void * | sim, |
| const unsigned long long int * | qubits, | ||
| unsigned long int | nrQubits, | ||
| unsigned long int | shots ) |
Definition at line 733 of file Interface.cpp.
| int SaveState | ( | void * | sim | ) |
Definition at line 792 of file Interface.cpp.
| int SaveStateToInternalDestructive | ( | void * | sim | ) |
Definition at line 776 of file Interface.cpp.
| int SetMultithreading | ( | void * | sim, |
| int | multithreading ) |
Definition at line 808 of file Interface.cpp.
| char * SimpleExecute | ( | unsigned long int | simpleSim, |
| const char * | circuitStr, | ||
| const char * | jsonConfig ) |
Definition at line 99 of file Interface.cpp.