Program.reset

Program.reset(qubit_index=None)[source]

Reset all qubits or just a specific qubit at qubit_index.

Parameters:qubit_index (Optional[int]) – The address of the qubit to reset. If None, reset all qubits.
Returns:The Quil Program with the appropriate reset instruction appended, e.g. RESET 0
Return type:Program