HLine#

qualtran.drawing.HLine

Dataclass representing a horizontal line segment at a given vertical position x.

It runs from (sequential) x positions seq_x_start to seq_x_end, inclusive. If seq_x_end is None, that indicates we’ve started a line (by allocating a new qubit perhaps) but we don’t know where it ends yet.

The horizontal line can be of a particular flavor, e.g. a quantum wire or a classical wire.

flavor

 

seq_x_end

 

seq_x_start

 

y

 

Methods#

json_dict

View source

__ne__

Check equality and either forward a NotImplemented or return the result negated.

__lt__

Method generated by attrs for class HLine.

__le__

Method generated by attrs for class HLine.

__gt__

Method generated by attrs for class HLine.

__ge__

Method generated by attrs for class HLine.

__eq__

Method generated by attrs for class HLine.