pygsti.protocols.scarab.lowlevel_mirror_benchmark

pygsti.protocols.scarab.lowlevel_mirror_benchmark#

lowlevel_mirror_benchmark(qk_circs, mirroring_kwargs_dict={})#

Create a noise benchmark from transpiled Qiskit circuits.

Parameters:
  • qk_circs (List[qiskit.QuantumCircuit] | Dict[qiskit.QuantumCircuit]) – Qiskit QuantumCircuits from which a noise benchmark is to be created. If a dictionary is provided, those keys are used. If a list is provided, default integer keys are used.

  • mirroring_kwargs_dict (dict, optional) –

    dictionary of keyword arguments to be used in circuit mirroring. If an arg is not provided, a default value is used. The args are:

    ’mirror_circuits_per_circ’: default 10. The number of mirror circuits of the test-exact and exact-exact varieties to be used for the process fidelity estimation of each provided Qiskit circuit.

    ’num_ref_per_qubit_subset’: default 10. The number of SPAM reference circuits to use for each qubit subset that is represented among the provided Qiskit circuits.

    ’rand_state’: default None. np.random.RandomState to be used for circuit mirroring.

Returns:

pygsti.protocols.FreeformDesign

Experiment design containing the pyGSTi conversion of all Qiskit circuits that were passed in. Does not need executed, but is needed for fidelity calculations.

pygsti.protocols.CombinedExperimentDesign

Experiment design containing all mirror circuits that must be executed in order to perform mirror circuit fidelity estimation.

Return type:

Tuple