deltakit.explorer.qpu.QPU.compile_and_add_noise_to_circuit#
- QPU.compile_and_add_noise_to_circuit(circuit: Circuit, remove_paulis: bool = True) Circuit#
Compile the supplied circuit so that it uses the QPU’s native gates and add noise based on the QPU’s noise model.
- Parameters:
circuit (Circuit) – Circuit to be compiled and to which to add noise.
remove_paulis (bool, optional) – Whether to remove Pauli gates from the circuit. This should be set to False if, for example, there is a desire to prepare a specific initial state which requires Pauli gates. By default, True.
- Returns:
Compiled circuit with noise added.
- Return type: