HLine#
qualtran.drawing.HLine
View source on GitHub
|
Dataclass representing a horizontal line segment at a given vertical position x.
qualtran.drawing.HLine(
y,
seq_x_start,
seq_x_end=attr_dict['seq_x_end'].default,
flavor=qualtran.drawing.musical_score.HLineFlavor.QUANTUM
)
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.
Attributes
Methods#
json_dict
json_dict() -> Dict[str, Any]
__ne__
__ne__(
other
)
Check equality and either forward a NotImplemented or return the result negated.
__lt__
__lt__(
other
)
Method generated by attrs for class HLine.
__le__
__le__(
other
)
Method generated by attrs for class HLine.
__gt__
__gt__(
other
)
Method generated by attrs for class HLine.
__ge__
__ge__(
other
)
Method generated by attrs for class HLine.
__eq__
__eq__(
other
)
Method generated by attrs for class HLine.
View source on GitHub