Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix conflicts #11673

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions qiskit/providers/fake_provider/generic_backend_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
from qiskit.exceptions import QiskitError
from qiskit.transpiler import CouplingMap, Target, InstructionProperties, QubitProperties
from qiskit.providers import Options
from qiskit.providers.basicaer import BasicAer
from qiskit.providers.basic_provider import BasicSimulator
from qiskit.providers.backend import BackendV2
from qiskit.providers.models import (
PulseDefaults,
Expand Down Expand Up @@ -251,15 +251,15 @@ def _get_calibration_sequence(
name="acquire",
duration=1792,
t0=0,
qubits=list(range(num_qubits)),
memory_slot=list(range(num_qubits)),
qubits=qargs,
memory_slot=qargs,
)
] + [PulseQobjInstruction(name=pulse_library[1], ch=f"m{i}", t0=0) for i in qargs]
] + [PulseQobjInstruction(name=pulse_library[1].name, ch=f"m{i}", t0=0) for i in qargs]
return sequence
if num_qubits == 1:
return [
PulseQobjInstruction(name="fc", ch=f"u{qargs}", t0=0, phase="-P0"),
PulseQobjInstruction(name=pulse_library[0].name, ch=f"d{qargs}", t0=0),
PulseQobjInstruction(name="fc", ch=f"u{qargs[0]}", t0=0, phase="-P0"),
PulseQobjInstruction(name=pulse_library[0].name, ch=f"d{qargs[0]}", t0=0),
]
return [
PulseQobjInstruction(name=pulse_library[1].name, ch=f"d{qargs[0]}", t0=0),
Expand Down Expand Up @@ -441,12 +441,12 @@ def run(self, run_input, **options):

This method runs circuit jobs (an individual or a list of :class:`~.QuantumCircuit`
) and pulse jobs (an individual or a list of :class:`~.Schedule` or
:class:`~.ScheduleBlock`) using :class:`~.BasicAer` or Aer simulator and returns a
:class:`~.ScheduleBlock`) using :class:`~.BasicSimulator` or Aer simulator and returns a
:class:`~qiskit.providers.Job` object.

If qiskit-aer is installed, jobs will be run using the ``AerSimulator`` with
noise model of the backend. Otherwise, jobs will be run using the
``BasicAer`` simulator without noise.
``BasicSimulator`` simulator without noise.

Noisy simulations of pulse jobs are not yet supported in :class:`~.GenericBackendV2`.

Expand Down Expand Up @@ -489,7 +489,7 @@ def run(self, run_input, **options):
raise QiskitError("Pulse simulation is currently not supported for V2 backends.")
# circuit job
if not _optionals.HAS_AER:
warnings.warn("Aer not found using BasicAer and no noise", RuntimeWarning)
warnings.warn("Aer not found using BasicSimulator and no noise", RuntimeWarning)
if self._sim is None:
self._setup_sim()
self._sim._options = self._options
Expand All @@ -508,7 +508,7 @@ def _setup_sim(self) -> None:
# it when run() is called
self.set_options(noise_model=noise_model)
else:
self._sim = BasicAer.get_backend("qasm_simulator")
self._sim = BasicSimulator()

@classmethod
def _default_options(cls) -> Options:
Expand All @@ -517,7 +517,7 @@ def _default_options(cls) -> Options:

return AerSimulator._default_options()
else:
return BasicAer.get_backend("qasm_simulator")._default_options()
return BasicSimulator._default_options()

def drive_channel(self, qubit: int):
drive_channels_map = getattr(self, "channels_map", {}).get("drive", {})
Expand Down
Loading