cirq.QubitOrder.map¶
-
QubitOrder.map(internalize: Callable[TExternalQubit, TInternalQubit], externalize: Callable[TInternalQubit, TExternalQubit]) → cirq.ops.qubit_order.QubitOrder[source]¶ Transforms the Basis so that it applies to wrapped qubits.
Parameters: - externalize – Converts an internal qubit understood by the underlying basis into an external qubit understood by the caller.
- internalize – Converts an external qubit understood by the caller into an internal qubit understood by the underlying basis.
Returns: A basis that transforms qubits understood by the caller into qubits understood by an underlying basis, uses that to order the qubits, then wraps the ordered qubits back up for the caller.