libqasm
library for handling cQASM files
Classes | Namespaces | Typedefs | Functions
cqasm-v1-instruction.hpp File Reference

This file contains the Instruction class and support types, each instance representing an instruction (also known as gate) supported by the user. More...

Go to the source code of this file.

Classes

class  cqasm::v1::instruction::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...
 

Namespaces

 cqasm
 Toplevel namespace with entry points for the new API.
 
 cqasm::v1
 Namespace for the "new" cQASM 1.x API.
 
 cqasm::v1::instruction
 Namespace for the Instruction class and helper types.
 
 cqasm::v1::primitives
 Namespace for the primitive types used in trees generated by tree-gen.
 

Typedefs

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

Functions

std::ostream & cqasm::v1::instruction::operator<< (std::ostream &os, const Instruction &insn)
 Stream << overload for instructions. More...
 
std::ostream & cqasm::v1::instruction::operator<< (std::ostream &os, const InstructionRef &insn)
 Stream << overload for instruction references. More...
 
template<>
void cqasm::v1::primitives::serialize (const instruction::InstructionRef &obj, ::tree::cbor::MapWriter &map)
 
template<>
instruction::InstructionRef cqasm::v1::primitives::deserialize (const ::tree::cbor::MapReader &map)
 Deserializes the given primitive object from CBOR. More...
 

Detailed Description

This file contains the Instruction class and support types, each instance representing an instruction (also known as gate) supported by the user.

Definition in file cqasm-v1-instruction.hpp.

#include "cqasm-v1-types.hpp"
#include "cqasm-v1-values.hpp"
Include dependency graph for cqasm-v1-instruction.hpp:
This graph shows which files directly or indirectly include this file: