Skip to main content

translated

Method of Qbit.

Overloads

NameDescription
translated(const integer shift) -> QbitReturns a copy of the product state with its qubits shifted by 11 site to the right a number of times equal to the provided integer.
translated() -> QbitReturns a copy of the product state with its qubits shifted by 11 site to the right.

translated(const integer shift) -> Qbit

Returns a copy of the product state with its qubits shifted by 11 site to the right a number of times equal to the provided integer.

Parameters

  • shift: The number of single site shift applied.

Example

Qbit("00100").translated(2) // Returns (1 + 0i)|00001>

translated() -> Qbit

Returns a copy of the product state with its qubits shifted by 11 site to the right.

Example

Qbit("00100").translated() // Returns (1 + 0i)|00010>