Function blackbird::parse(std::string&)

Function Documentation

Program *blackbird::parse(std::string &s_input)

Parse Blackbird code contained within a C++ std::string

To apply the parser directly to a file stream (std::ifstream), use parse(std::ifstream &stream).

Parameters

s_input – string input

Returns

an instance of the Blackbird program containing details about the device, gates, and parameters.