qsim::
QSimRunner
#include <run_qsim.h>
Helper struct for running qsim.
Summary
Public types |
|
---|---|
MeasurementResult
|
using
typename
StateSpace::MeasurementResult
|
State
|
using
typename StateSpace::State
|
StateSpace
|
using
typename
Simulator::StateSpace
|
Public static functions |
|
---|---|
Run
(const
Parameter
& param, const
Circuit
& circuit, MeasurementFunc measure)
|
bool
Runs the given circuit, only measuring at the end.
|
Run
(const
Parameter
& param, const std::vector< unsigned > & times_to_measure_at, const
Circuit
& circuit, MeasurementFunc measure)
|
bool
Runs the given circuit, measuring at user-specified times.
|
Run
(const
Parameter
& param, const
Circuit
& circuit, State & state, std::vector< MeasurementResult > & measure_results)
|
bool
Runs the given circuit and make the final state available to the caller, recording the result of any intermediate measurements in the circuit.
|
Run
(const
Parameter
& param, const
Circuit
& circuit, State & state)
|
bool
Runs the given circuit and make the final state available to the caller, discarding the result of any intermediate measurements in the circuit.
|
Structs |
|
---|---|
qsim::
|
User-specified parameters for gate fusion and simulation. |
Public types
State
typename StateSpace::State qsim::QSimRunner::State
Public static functions
Run
bool qsim::QSimRunner::Run( const Parameter & param, const Circuit & circuit, MeasurementFunc measure )
Runs the given circuit, only measuring at the end.
Details | |||||||
---|---|---|---|---|---|---|---|
Parameters |
|
||||||
Returns |
True if the simulation completed successfully; false otherwise.
|
Run
bool qsim::QSimRunner::Run( const Parameter & param, const std::vector< unsigned > & times_to_measure_at, const Circuit & circuit, MeasurementFunc measure )
Runs the given circuit, measuring at user-specified times.
Details | |||||||||
---|---|---|---|---|---|---|---|---|---|
Parameters |
|
||||||||
Returns |
True if the simulation completed successfully; false otherwise.
|
Run
bool qsim::QSimRunner::Run( const Parameter & param, const Circuit & circuit, State & state, std::vector< MeasurementResult > & measure_results )
Runs the given circuit and make the final state available to the caller, recording the result of any intermediate measurements in the circuit.
Details | |||||||||
---|---|---|---|---|---|---|---|---|---|
Parameters |
|
||||||||
Returns |
True if the simulation completed successfully; false otherwise.
|
Run
bool qsim::QSimRunner::Run( const Parameter & param, const Circuit & circuit, State & state )
Runs the given circuit and make the final state available to the caller, discarding the result of any intermediate measurements in the circuit.
Details | |||||||
---|---|---|---|---|---|---|---|
Parameters |
|
||||||
Returns |
True if the simulation completed successfully; false otherwise.
|