|
Maestro 0.1.0
Unified interface for quantum circuit simulation
|
A proxy class for a quantum computing simulator observer. More...
#include <SimulatorObserver.h>
Public Member Functions | |
| SimulatorObserverProxy (const std::shared_ptr< Impl > &impl) | |
| Constructor. | |
| void | Update (const Types::qubits_vector &qubits) override |
| Update function that is called each time an update is done. | |
| Public Member Functions inherited from Simulators::ISimulatorObserver | |
| virtual | ~ISimulatorObserver ()=default |
| Virtual destructor. | |
| std::shared_ptr< ISimulatorObserver > | getptr () |
| Get a shared pointer to this object. | |
A proxy class for a quantum computing simulator observer.
If you don't want to derive from ISimulatorObserver, use this proxy class. The implementation of the observer needs to implement the Update function.
| Impl | The implementation of the observer. |
Definition at line 76 of file SimulatorObserver.h.
|
inline |
Constructor.
Constructs a proxy for the observer.
| impl | The implementation of the observer, wrapped in a shared pointer. |
Definition at line 85 of file SimulatorObserver.h.
|
inlineoverridevirtual |
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. |
Implements Simulators::ISimulatorObserver.
Definition at line 94 of file SimulatorObserver.h.