cirq.QubitOrder.order_for¶
-
QubitOrder.order_for(qubits: Iterable[cirq.ops.raw_types.QubitId]) → Tuple[cirq.ops.raw_types.QubitId, ...][source]¶ Returns a qubit tuple ordered corresponding to the basis.
Parameters: qubits – Qubits that should be included in the basis. (Additional qubits may be added into the output by the basis.) Returns: A tuple of qubits in the same order that their single-qubit matrices would be passed into np.kron when producing a matrix for the entire system.