cirq.QubitOrder.explicit¶
-
static
QubitOrder.explicit(fixed_qubits: Iterable[cirq.ops.raw_types.QubitId], fallback: Optional[QubitOrder] = None) → cirq.ops.qubit_order.QubitOrder[source]¶ A basis that contains exactly the given qubits in the given order.
Parameters: - fixed_qubits – The qubits in basis order.
- fallback – A fallback order to use for extra qubits not in the fixed_qubits list. Extra qubits will always come after the fixed_qubits, but will be ordered based on the fallback. If no fallback is specified, a ValueError is raised when extra qubits are specified.
Returns: A Basis instance that forces the given qubits in the given order.