Skip to content

Possible Qubit Bug in mutation.py #2

@mmckenzuccs

Description

@mmckenzuccs

In the mutation.py file, the function execute_mutated_circuits_random, will throw an error and halt very early in the execution of the function.

mutation_execution_result_random = execute_mutated_circuits_random(operation_list, ans_dict, res_dict, simulator, 31)

Produces the output:

qnn_indep_qiskit_8.qasm 23 'Number of qubits (31) in circuit-8751 is greater than maximum (30) in the coupling_map'

I am under the impression that this is a limitation of the version of qiskit provided from the README.
However, I think there is a bug in the function (or arguments passed to the call):

generate_monitoring_circuit(mutation_qc, key, operation_list, num=10000000, ans=ans_dict[key])

Because the resulting qubit count should not exceed 20, as per the paper. The problem could also be in the function:

def solve_qmon_for_circuit(circ_name: str, entry: dict, Qmax: int = 30, two_stage: bool = True, prefer_large_index: bool = True):

It could be that the function is not correctly utilizing the qubit limit of 20 when you call the function in circuits_selection.py.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions