|
Maestro 0.1.0
Unified interface for quantum circuit simulation
|
Interface class for a quantum computing simulator observer. More...
#include <SimulatorObserver.h>
Public Member Functions | |
| virtual | ~ISimulatorObserver ()=default |
| Virtual destructor. | |
| virtual void | Update (const Types::qubits_vector &qubits)=0 |
| Update function that is called each time an update is done. | |
| std::shared_ptr< ISimulatorObserver > | getptr () |
| Get a shared pointer to this object. | |
Interface class for a quantum computing simulator observer.
Derive from this class to implement a simulator observer.
Definition at line 35 of file SimulatorObserver.h.
|
virtualdefault |
Virtual destructor.
Since this is a base class, the destructor should be virtual.
|
inline |
Get a shared pointer to this object.
Returns a shared pointer to this object. The object needs to be already wrapped in a shared pointer.
Definition at line 61 of file SimulatorObserver.h.
|
pure virtual |
Update function that is called each time an update is done.
This function is called each time the state is changed, with the qubits that have been changed.
| qubits | The qubits that have been changed. |
Implemented in Simulators::SimulatorObserverProxy< Impl >.