qcmet.devices.QiskitDevice#

class qcmet.devices.QiskitDevice(name='qiskit_device', basis_gates=None)[source]#

QiskitDevice implementation for quantum benchmarks.

This subclass defines methods for qiskit-based devices. It supports bitstring reversal to match big-endian interpretation of measurement results.

__init__(name='qiskit_device', basis_gates=None)[source]#

Initialize the Aer simulator device.

Parameters:
  • name (str) – Subclass name.

  • basis_gates (list[str], optional) – Restrict transpiled circuits to specific gate set.

Methods

__init__([name, basis_gates])

Initialize the Aer simulator device.

reverse_bitstrings(counts_dict)

Reverse bitstrings in a measurement count dictionary.

run(circuits[, num_shots, max_circs_per_job])

Execute one or more quantum circuits on the device.

reverse_bitstrings(counts_dict)[source]#

Reverse bitstrings in a measurement count dictionary.

This converts between little and big endian.

Parameters:

counts_dict (dict) – Original measurement counts with bitstrings as keys.

Returns:

A new dictionary with bitstrings reversed.

Return type:

dict