Skip to main content

reflect

Method of Qbit.

reflect() -> Qbit

Reverses the product state (reversed end-to-end) in place.

Example

Qbit("10110").reflect() // Returns |01101>