RESET

pyquil.gates.RESET(qubit_index=None)[source]

Reset all qubits or just one specific qubit.

Parameters:qubit_index (Union[Qubit, QubitPlaceholder, int, None]) – The qubit to reset. This can be a qubit’s index, a Qubit, or a QubitPlaceholder. If None, reset all qubits.
Return type:Union[Reset, ResetQubit]
Returns:A Reset or ResetQubit Quil AST expression corresponding to a global or targeted reset, respectively.