Adds measurement to all non-idle qubits. Creates a new ClassicalRegister with a size equal to the number of non-idle qubits being measured.
Returns a new circuit with measurements if inplace=False.
inplace (bool) – All measurements inplace or return new circuit.
Returns circuit with measurements when inplace = False.
- Return type