class cirq.QubitOrder(explicit_func: Callable[Iterable[cirq.ops.raw_types.QubitId], Tuple[cirq.ops.raw_types.QubitId, ...]])[source]

Defines the kronecker product order of qubits.

__init__(explicit_func: Callable[Iterable[cirq.ops.raw_types.QubitId], Tuple[cirq.ops.raw_types.QubitId, ...]]) → None[source]

Initialize self. See help(type(self)) for accurate signature.


as_qubit_order(val) Converts a value into a basis.
explicit(fixed_qubits, fallback, …) A basis that contains exactly the given qubits in the given order.
map(internalize, TInternalQubit], …) Transforms the Basis so that it applies to wrapped qubits.
order_for(qubits) Returns a qubit tuple ordered corresponding to the basis.
sorted_by(key, Any]) A basis that orders qubits ascending based on a key function.


DEFAULT A basis that orders qubits based on their names.