class QPanda::DRAW_TEXT_PIC::DrawPicture

Overview

draw text-picture More…

Detailed Documentation

draw text-picture

Construction

Constructor of DrawPicture.

Methods

initialize

Parameters:

std::vector<int>&

used qubits

std::vector<int>&

used class bits

display and return the target string

Returns:

std::string

merge wire line

get the max length of quantum wire between start_quBit_wire and end_quBit_wire

Parameters:

WireIter

start quBit wire

WireIter

end quBit wire

Returns:

int the max length

update TextPic length

get val of wide char

Parameters:

unsigned char*

the target wide char

Returns:

the val of the wide char

check the target wire time sequence

Parameters:

TopoSeqIter

the target layer

update the target wire time sequence

Parameters:

std::shared_ptr<Wire>

the target wire

int

increased time sequence

append time sequence line to text-picture

append layer line to text-picture

draw text-picture by layer

draw text-picture by time sequence

Parameters:

const

std::string It can be configuration file or configuration data, which can be distinguished by file suffix, so the configuration file must be end with “.json”, default is CONFIG_PATH

get the difference of two QVecs

Returns:

QVec vec1 - vec2