quri_parts.backend.cost_estimator module

estimate_circuit_latency(circuit, device)

Estimates the execution time for processing the given quantum circuit on the given device.

Parameters:
Returns:

Estimated latency of the circuit in nano seconds when executing on the given device.

Return type:

TimeValue

estimate_circuit_fidelity(circuit, device, background_error=True)

Estimates the fidelity of processing the given quantum circuit on the given device.

Parameters:
  • circuit (ImmutableQuantumCircuit) – NonParametricQuantumCircuit to be estimated.

  • device (DeviceProperty) – DeviceProperty of the device to execute the circuit.

  • background_error (bool) – Specifies whether the background error is factored into the fidelity of the circuit. True by default.

Returns:

Estimated fidelity of the circuit when executing on the given device.

Return type:

float