Documentation for microsoft::quantum::TestVM
microsoft::quantum::TestVM
Public Functions
Name | |
---|---|
TestVM(TestProgram & program) | |
template <typename T > void |
attachGlobalExternalVariable(String const & name, T * pointer) |
template <typename R ,typename X > void |
attachRuntimeFunction(String const & name, R(*)(X) pointer) |
template <typename R ,typename... Args> void |
attachRuntimeFunction(String const & name, R(*)(Args...) pointer) |
template <typename R > void |
attachRuntimeFunction(String const & name, R(*)() pointer) |
template <typename R ,typename... Args> R |
run(String const & name, Args &&... args) |
template <typename R > R |
run(String const & name) |
Public Functions Documentation
function TestVM
inline explicit TestVM(
TestProgram & program
)
function attachGlobalExternalVariable
template <typename T >
void attachGlobalExternalVariable(
String const & name,
T * pointer
)
function attachRuntimeFunction
template <typename R ,
typename X >
void attachRuntimeFunction(
String const & name,
R(*)(X) pointer
)
function attachRuntimeFunction
template <typename R ,
typename... Args>
void attachRuntimeFunction(
String const & name,
R(*)(Args...) pointer
)
function attachRuntimeFunction
template <typename R >
void attachRuntimeFunction(
String const & name,
R(*)() pointer
)
function run
template <typename R ,
typename... Args>
R run(
String const & name,
Args &&... args
)
function run
template <typename R >
R run(
String const & name
)
Updated on 1 August 2023 at 16:25:10 UTC