Skip to content

Transpilation issues for Mirror RB #58

@quantumjim

Description

@quantumjim

Running the following results in the error

IBMInputValueError: 'The instruction cx on qubits (26, 16) is not supported by the target system. Circuits that do not match the target hardware definition are no longer supported after March 4, 2024. See the transpilation documentation (https://quantum.cloud.ibm.com/docs/guides/transpile) for instructions to transform circuits and the primitive examples (https://quantum.cloud.ibm.com/docs/guides/primitives-examples) to see this coupled with operator transformations.'

from qiskit_ibm_runtime.fake_provider import FakeSherbrooke
from qiskit_device_benchmarking.bench_code.mrb import MirrorRB

backend = FakeSherbrooke()

# number of shots per circuit
shots = 10000

# lengths of different mirror circuits to run
lengths = [2]+[4,10,20,50,100]

# set up the experiment object
exp = MirrorRB(
    range(backend.num_qubits),
    lengths,
    backend=backend,
    two_qubit_gate_density=0.25,
    num_samples=20,
    )
exp.set_run_options(
    shots=shots
)

#run
rb_data = exp.run()
print(rb_data.job_ids)

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