Class Program

Inheritance Relationships

Derived Types

Class Documentation

class blackbird::Program

The quantum program. This is the main class for viewing and extracting details of the quantum operations requested in the Blackbird script.

Subclassed by blackbird::Chip0, blackbird::FockSimulator, blackbird::GaussianSimulator

Public Functions

inline virtual void print_device_info()

Virtual method to print the corresponding device info. This must be overwritten by the device class that inherits from Program.

inline void print_operations()

This methods loops through all operations in the operations vector, and, depending on the number of arguments and the domain of the arguments, calls the corresponding Operation method to print operation details.

Public Members

Device name

Name of the device the quantum program is destined for.

std::vector<Operation*> operations

Vector of operations to be performed.