libqasm
library for handling cQASM files
Classes | Typedefs | Functions
cqasm::v1::instruction Namespace Reference

Detailed Description

Namespace for the Instruction class and helper types.

Classes

class  Instruction
 Representation of an available instruction (also known as gate) in the instruction set, without parameters bound to it (note that libqasm cannot match instructions based on which qubits are used; you'll need to do that on your own). More...
 

Typedefs

using InstructionRef = tree::Maybe< Instruction >
 Optional reference to an instruction, used within the semantic tree. More...
 

Functions

std::ostream & operator<< (std::ostream &os, const Instruction &insn)
 Stream << overload for instructions. More...
 
std::ostream & operator<< (std::ostream &os, const InstructionRef &insn)
 Stream << overload for instruction references. More...
 

Typedef Documentation

◆ InstructionRef

Optional reference to an instruction, used within the semantic tree.

Definition at line 124 of file cqasm-v1-instruction.hpp.

Function Documentation

◆ operator<<() [1/2]

std::ostream & cqasm::v1::instruction::operator<< ( std::ostream &  os,
const Instruction insn 
)

Stream << overload for instructions.

Definition at line 56 of file cqasm-v1-instruction.cpp.

◆ operator<<() [2/2]

std::ostream & cqasm::v1::instruction::operator<< ( std::ostream &  os,
const InstructionRef insn 
)

Stream << overload for instruction references.

Definition at line 64 of file cqasm-v1-instruction.cpp.