translated
Method of Qbit.
Overloads
| Name | Description |
|---|---|
translated(const integer shift) -> Qbit | Returns a copy of the product state with its qubits shifted by site to the right a number of times equal to the provided integer. |
translated() -> Qbit | Returns a copy of the product state with its qubits shifted by site to the right. |
translated(const integer shift) -> Qbit
Returns a copy of the product state with its qubits shifted by 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 site to the right.
Example
Qbit("00100").translated() // Returns (1 + 0i)|00010>