Closed vasinov closed 5 years ago
To avoid error-handling logic in the classical register and collapsed state conversions we should represent classical bits with the following sum type:
sealed trait Bit case class Zero extends Bit case class One extends Bit
with appropriate Int to Bit conversions.
Int
Bit
To avoid error-handling logic in the classical register and collapsed state conversions we should represent classical bits with the following sum type:
with appropriate
Int
toBit
conversions.