deltakit.explorer.qpu.QPU.from_circuit_compile_and_add_noise#
- static QPU.from_circuit_compile_and_add_noise(circuit: Circuit, native_gates_and_times: NativeGateSetAndTimes = <deltakit_explorer.qpu._native_gate_set.ExhaustiveGateSet object>, noise_model: NoiseParameters = NoiseParameters(gate_noise=[], idle_noise=None, reset_noise=[], measurement_noise_after=[], measurement_noise_before=[], measurement_flip={}), remove_paulis: bool = True, maximise_parallelism: bool = True) Circuit#
Compile the supplied circuit with a given noise model on an unconstrained QPU which, by default, supports all gates natively.
- Parameters:
circuit (Circuit) – Circuit to be compiled and to which to add noise.
native_gates_and_times (NativeGateSetAndTimes) – The native gates (including measurement and reset) and the time they take to apply.
noise_model (NoiseParameters) – The noise associated with operations on the QPU.
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.
maximise_parallelism (bool, optional) – Whether to do as many gates in parallel as possible (True) or only to perform gates in parallel if they are in the same GateLayer (False). By default, True.
- Returns:
Compiled circuit with noise added.
- Return type: