View source on GitHub |
Methods
qalloc
@abc.abstractmethod
qalloc( n: int, dim: int = 2 ) -> List['cirq.Qid']
Allocate n
clean qubits, i.e. qubits guaranteed to be in state |0>.
qborrow
@abc.abstractmethod
qborrow( n: int, dim: int = 2 ) -> List['cirq.Qid']
Allocate n
dirty qubits, i.e. the returned qubits can be in any state.
qfree
@abc.abstractmethod
qfree( qubits: Iterable['cirq.Qid'] ) -> None
Free pre-allocated clean or dirty qubits managed by this qubit manager.