{"payload":{"allShortcutsEnabled":false,"fileTree":{"qiskit/scheduler/methods":{"items":[{"name":"__init__.py","path":"qiskit/scheduler/methods/__init__.py","contentType":"file"},{"name":"basic.py","path":"qiskit/scheduler/methods/basic.py","contentType":"file"}],"totalCount":2},"qiskit/scheduler":{"items":[{"name":"methods","path":"qiskit/scheduler/methods","contentType":"directory"},{"name":"__init__.py","path":"qiskit/scheduler/__init__.py","contentType":"file"},{"name":"config.py","path":"qiskit/scheduler/config.py","contentType":"file"},{"name":"lowering.py","path":"qiskit/scheduler/lowering.py","contentType":"file"},{"name":"schedule_circuit.py","path":"qiskit/scheduler/schedule_circuit.py","contentType":"file"},{"name":"sequence.py","path":"qiskit/scheduler/sequence.py","contentType":"file"}],"totalCount":6},"qiskit":{"items":[{"name":"assembler","path":"qiskit/assembler","contentType":"directory"},{"name":"circuit","path":"qiskit/circuit","contentType":"directory"},{"name":"compiler","path":"qiskit/compiler","contentType":"directory"},{"name":"converters","path":"qiskit/converters","contentType":"directory"},{"name":"dagcircuit","path":"qiskit/dagcircuit","contentType":"directory"},{"name":"passmanager","path":"qiskit/passmanager","contentType":"directory"},{"name":"primitives","path":"qiskit/primitives","contentType":"directory"},{"name":"providers","path":"qiskit/providers","contentType":"directory"},{"name":"pulse","path":"qiskit/pulse","contentType":"directory"},{"name":"qasm","path":"qiskit/qasm","contentType":"directory"},{"name":"qasm2","path":"qiskit/qasm2","contentType":"directory"},{"name":"qasm3","path":"qiskit/qasm3","contentType":"directory"},{"name":"qobj","path":"qiskit/qobj","contentType":"directory"},{"name":"qpy","path":"qiskit/qpy","contentType":"directory"},{"name":"quantum_info","path":"qiskit/quantum_info","contentType":"directory"},{"name":"result","path":"qiskit/result","contentType":"directory"},{"name":"scheduler","path":"qiskit/scheduler","contentType":"directory"},{"name":"synthesis","path":"qiskit/synthesis","contentType":"directory"},{"name":"transpiler","path":"qiskit/transpiler","contentType":"directory"},{"name":"utils","path":"qiskit/utils","contentType":"directory"},{"name":"visualization","path":"qiskit/visualization","contentType":"directory"},{"name":"VERSION.txt","path":"qiskit/VERSION.txt","contentType":"file"},{"name":"__init__.py","path":"qiskit/__init__.py","contentType":"file"},{"name":"exceptions.py","path":"qiskit/exceptions.py","contentType":"file"},{"name":"user_config.py","path":"qiskit/user_config.py","contentType":"file"},{"name":"version.py","path":"qiskit/version.py","contentType":"file"}],"totalCount":26},"":{"items":[{"name":".azure","path":".azure","contentType":"directory"},{"name":".binder","path":".binder","contentType":"directory"},{"name":".cargo","path":".cargo","contentType":"directory"},{"name":".github","path":".github","contentType":"directory"},{"name":"crates","path":"crates","contentType":"directory"},{"name":"docs","path":"docs","contentType":"directory"},{"name":"examples","path":"examples","contentType":"directory"},{"name":"qiskit","path":"qiskit","contentType":"directory"},{"name":"releasenotes","path":"releasenotes","contentType":"directory"},{"name":"test","path":"test","contentType":"directory"},{"name":"tools","path":"tools","contentType":"directory"},{"name":".editorconfig","path":".editorconfig","contentType":"file"},{"name":".git-blame-ignore-revs","path":".git-blame-ignore-revs","contentType":"file"},{"name":".gitignore","path":".gitignore","contentType":"file"},{"name":".local-spellings","path":".local-spellings","contentType":"file"},{"name":".mailmap","path":".mailmap","contentType":"file"},{"name":".mergify.yml","path":".mergify.yml","contentType":"file"},{"name":".stestr.conf","path":".stestr.conf","contentType":"file"},{"name":"CITATION.bib","path":"CITATION.bib","contentType":"file"},{"name":"CODE_OF_CONDUCT.md","path":"CODE_OF_CONDUCT.md","contentType":"file"},{"name":"CONTRIBUTING.md","path":"CONTRIBUTING.md","contentType":"file"},{"name":"Cargo.lock","path":"Cargo.lock","contentType":"file"},{"name":"Cargo.toml","path":"Cargo.toml","contentType":"file"},{"name":"DEPRECATION.md","path":"DEPRECATION.md","contentType":"file"},{"name":"LICENSE.txt","path":"LICENSE.txt","contentType":"file"},{"name":"MAINTAINING.md","path":"MAINTAINING.md","contentType":"file"},{"name":"MANIFEST.in","path":"MANIFEST.in","contentType":"file"},{"name":"Makefile","path":"Makefile","contentType":"file"},{"name":"README.md","path":"README.md","contentType":"file"},{"name":"SECURITY.md","path":"SECURITY.md","contentType":"file"},{"name":"asv.conf.json","path":"asv.conf.json","contentType":"file"},{"name":"azure-pipelines.yml","path":"azure-pipelines.yml","contentType":"file"},{"name":"constraints.txt","path":"constraints.txt","contentType":"file"},{"name":"pyproject.toml","path":"pyproject.toml","contentType":"file"},{"name":"qiskit_bot.yaml","path":"qiskit_bot.yaml","contentType":"file"},{"name":"requirements-dev.txt","path":"requirements-dev.txt","contentType":"file"},{"name":"requirements-optional.txt","path":"requirements-optional.txt","contentType":"file"},{"name":"requirements.txt","path":"requirements.txt","contentType":"file"},{"name":"rust-toolchain.toml","path":"rust-toolchain.toml","contentType":"file"},{"name":"setup.py","path":"setup.py","contentType":"file"},{"name":"tox.ini","path":"tox.ini","contentType":"file"}],"totalCount":41}},"fileTreeProcessingTime":17.880689,"foldersToFetch":[],"repo":{"id":83821669,"defaultBranch":"main","name":"qiskit","ownerLogin":"Qiskit","currentUserCanPush":false,"isFork":false,"isEmpty":false,"createdAt":"2017-03-03T17:02:42.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/30696987?v=4","public":true,"private":false,"isOrgOwned":true},"symbolsExpanded":false,"treeExpanded":true,"refInfo":{"name":"main","listCacheKey":"v0:1710785011.0","canEdit":false,"refType":"branch","currentOid":"43381ae1b159c01b55159d2dc1e8a65970b72746"},"path":"qiskit/scheduler/methods/basic.py","currentUser":null,"blob":{"rawLines":["# This code is part of Qiskit.","#","# (C) Copyright IBM 2019.","#","# This code is licensed under the Apache License, Version 2.0. You may","# obtain a copy of this license in the LICENSE.txt file in the root directory","# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.","#","# Any modifications or derivative works of this code must retain this","# copyright notice, and modified files need to carry a notice indicating","# that they have been altered from the originals.","","\"\"\"","The most straightforward scheduling methods: scheduling **as early** or **as late** as possible.","\"\"\"","from collections import defaultdict","from typing import List, Optional, Union","","from qiskit.circuit.quantumcircuit import QuantumCircuit","from qiskit.circuit.barrier import Barrier","from qiskit.pulse.schedule import Schedule","","from qiskit.scheduler.config import ScheduleConfig","from qiskit.scheduler.lowering import lower_gates","from qiskit.providers import BackendV1, BackendV2","","","def as_soon_as_possible("," circuit: QuantumCircuit,"," schedule_config: ScheduleConfig,"," backend: Optional[Union[BackendV1, BackendV2]] = None,",") -> Schedule:"," \"\"\""," Return the pulse Schedule which implements the input circuit using an \"as soon as possible\""," (asap) scheduling policy.",""," Circuit instructions are first each mapped to equivalent pulse"," Schedules according to the command definition given by the schedule_config. Then, this circuit"," instruction-equivalent Schedule is appended at the earliest time at which all qubits involved"," in the instruction are available.",""," Args:"," circuit: The quantum circuit to translate."," schedule_config: Backend specific parameters used for building the Schedule."," backend: A backend used to build the Schedule, the backend could be BackendV1"," or BackendV2.",""," Returns:"," A schedule corresponding to the input ``circuit`` with pulses occurring as early as"," possible."," \"\"\""," qubit_time_available = defaultdict(int)",""," def update_times(inst_qubits: List[int], time: int = 0) -> None:"," \"\"\"Update the time tracker for all inst_qubits to the given time.\"\"\""," for q in inst_qubits:"," qubit_time_available[q] = time",""," start_times = []"," circ_pulse_defs = lower_gates(circuit, schedule_config, backend)"," for circ_pulse_def in circ_pulse_defs:"," start_time = max(qubit_time_available[q] for q in circ_pulse_def.qubits)"," stop_time = start_time"," if not isinstance(circ_pulse_def.schedule, Barrier):"," stop_time += circ_pulse_def.schedule.duration",""," start_times.append(start_time)"," update_times(circ_pulse_def.qubits, stop_time)",""," timed_schedules = ["," (time, cpd.schedule)"," for time, cpd in zip(start_times, circ_pulse_defs)"," if not isinstance(cpd.schedule, Barrier)"," ]"," schedule = Schedule.initialize_from(circuit)"," for time, inst in timed_schedules:"," schedule.insert(time, inst, inplace=True)"," return schedule","","","def as_late_as_possible("," circuit: QuantumCircuit,"," schedule_config: ScheduleConfig,"," backend: Optional[Union[BackendV1, BackendV2]] = None,",") -> Schedule:"," \"\"\""," Return the pulse Schedule which implements the input circuit using an \"as late as possible\""," (alap) scheduling policy.",""," Circuit instructions are first each mapped to equivalent pulse"," Schedules according to the command definition given by the schedule_config. Then, this circuit"," instruction-equivalent Schedule is appended at the latest time that it can be without allowing"," unnecessary time between instructions or allowing instructions with common qubits to overlap.",""," This method should improves the outcome fidelity over ASAP scheduling, because we may"," maximize the time that the qubit remains in the ground state.",""," Args:"," circuit: The quantum circuit to translate."," schedule_config: Backend specific parameters used for building the Schedule."," backend: A backend used to build the Schedule, the backend could be BackendV1"," or BackendV2.",""," Returns:"," A schedule corresponding to the input ``circuit`` with pulses occurring as late as"," possible."," \"\"\""," qubit_time_available = defaultdict(int)",""," def update_times(inst_qubits: List[int], time: int = 0) -> None:"," \"\"\"Update the time tracker for all inst_qubits to the given time.\"\"\""," for q in inst_qubits:"," qubit_time_available[q] = time",""," rev_stop_times = []"," circ_pulse_defs = lower_gates(circuit, schedule_config, backend)"," for circ_pulse_def in reversed(circ_pulse_defs):"," start_time = max(qubit_time_available[q] for q in circ_pulse_def.qubits)"," stop_time = start_time"," if not isinstance(circ_pulse_def.schedule, Barrier):"," stop_time += circ_pulse_def.schedule.duration",""," rev_stop_times.append(stop_time)"," update_times(circ_pulse_def.qubits, stop_time)",""," last_stop = max(t for t in qubit_time_available.values()) if qubit_time_available else 0"," start_times = [last_stop - t for t in reversed(rev_stop_times)]",""," timed_schedules = ["," (time, cpd.schedule)"," for time, cpd in zip(start_times, circ_pulse_defs)"," if not isinstance(cpd.schedule, Barrier)"," ]"," schedule = Schedule.initialize_from(circuit)"," for time, inst in timed_schedules:"," schedule.insert(time, inst, inplace=True)"," return schedule"],"stylingDirectives":[[{"start":0,"end":30,"cssClass":"pl-c"}],[{"start":0,"end":1,"cssClass":"pl-c"}],[{"start":0,"end":25,"cssClass":"pl-c"}],[{"start":0,"end":1,"cssClass":"pl-c"}],[{"start":0,"end":70,"cssClass":"pl-c"}],[{"start":0,"end":77,"cssClass":"pl-c"}],[{"start":0,"end":71,"cssClass":"pl-c"}],[{"start":0,"end":1,"cssClass":"pl-c"}],[{"start":0,"end":69,"cssClass":"pl-c"}],[{"start":0,"end":72,"cssClass":"pl-c"}],[{"start":0,"end":49,"cssClass":"pl-c"}],[],[{"start":0,"end":3,"cssClass":"pl-s"}],[{"start":0,"end":96,"cssClass":"pl-s"}],[{"start":0,"end":3,"cssClass":"pl-s"}],[{"start":0,"end":4,"cssClass":"pl-k"},{"start":5,"end":16,"cssClass":"pl-s1"},{"start":17,"end":23,"cssClass":"pl-k"},{"start":24,"end":35,"cssClass":"pl-s1"}],[{"start":0,"end":4,"cssClass":"pl-k"},{"start":5,"end":11,"cssClass":"pl-s1"},{"start":12,"end":18,"cssClass":"pl-k"},{"start":19,"end":23,"cssClass":"pl-v"},{"start":25,"end":33,"cssClass":"pl-v"},{"start":35,"end":40,"cssClass":"pl-v"}],[],[{"start":0,"end":4,"cssClass":"pl-k"},{"start":5,"end":11,"cssClass":"pl-s1"},{"start":12,"end":19,"cssClass":"pl-s1"},{"start":20,"end":34,"cssClass":"pl-s1"},{"start":35,"end":41,"cssClass":"pl-k"},{"start":42,"end":56,"cssClass":"pl-v"}],[{"start":0,"end":4,"cssClass":"pl-k"},{"start":5,"end":11,"cssClass":"pl-s1"},{"start":12,"end":19,"cssClass":"pl-s1"},{"start":20,"end":27,"cssClass":"pl-s1"},{"start":28,"end":34,"cssClass":"pl-k"},{"start":35,"end":42,"cssClass":"pl-v"}],[{"start":0,"end":4,"cssClass":"pl-k"},{"start":5,"end":11,"cssClass":"pl-s1"},{"start":12,"end":17,"cssClass":"pl-s1"},{"start":18,"end":26,"cssClass":"pl-s1"},{"start":27,"end":33,"cssClass":"pl-k"},{"start":34,"end":42,"cssClass":"pl-v"}],[],[{"start":0,"end":4,"cssClass":"pl-k"},{"start":5,"end":11,"cssClass":"pl-s1"},{"start":12,"end":21,"cssClass":"pl-s1"},{"start":22,"end":28,"cssClass":"pl-s1"},{"start":29,"end":35,"cssClass":"pl-k"},{"start":36,"end":50,"cssClass":"pl-v"}],[{"start":0,"end":4,"cssClass":"pl-k"},{"start":5,"end":11,"cssClass":"pl-s1"},{"start":12,"end":21,"cssClass":"pl-s1"},{"start":22,"end":30,"cssClass":"pl-s1"},{"start":31,"end":37,"cssClass":"pl-k"},{"start":38,"end":49,"cssClass":"pl-s1"}],[{"start":0,"end":4,"cssClass":"pl-k"},{"start":5,"end":11,"cssClass":"pl-s1"},{"start":12,"end":21,"cssClass":"pl-s1"},{"start":22,"end":28,"cssClass":"pl-k"},{"start":29,"end":38,"cssClass":"pl-v"},{"start":40,"end":49,"cssClass":"pl-v"}],[],[],[{"start":0,"end":3,"cssClass":"pl-k"},{"start":4,"end":23,"cssClass":"pl-en"}],[{"start":4,"end":11,"cssClass":"pl-s1"},{"start":13,"end":27,"cssClass":"pl-v"}],[{"start":4,"end":19,"cssClass":"pl-s1"},{"start":21,"end":35,"cssClass":"pl-v"}],[{"start":4,"end":11,"cssClass":"pl-s1"},{"start":13,"end":21,"cssClass":"pl-v"},{"start":22,"end":27,"cssClass":"pl-v"},{"start":28,"end":37,"cssClass":"pl-v"},{"start":39,"end":48,"cssClass":"pl-v"},{"start":51,"end":52,"cssClass":"pl-c1"},{"start":53,"end":57,"cssClass":"pl-c1"}],[{"start":2,"end":4,"cssClass":"pl-c1"},{"start":5,"end":13,"cssClass":"pl-v"}],[{"start":4,"end":7,"cssClass":"pl-s"}],[{"start":0,"end":95,"cssClass":"pl-s"}],[{"start":0,"end":29,"cssClass":"pl-s"}],[{"start":0,"end":0,"cssClass":"pl-s"}],[{"start":0,"end":66,"cssClass":"pl-s"}],[{"start":0,"end":98,"cssClass":"pl-s"}],[{"start":0,"end":97,"cssClass":"pl-s"}],[{"start":0,"end":37,"cssClass":"pl-s"}],[{"start":0,"end":0,"cssClass":"pl-s"}],[{"start":0,"end":9,"cssClass":"pl-s"}],[{"start":0,"end":50,"cssClass":"pl-s"}],[{"start":0,"end":84,"cssClass":"pl-s"}],[{"start":0,"end":85,"cssClass":"pl-s"}],[{"start":0,"end":30,"cssClass":"pl-s"}],[{"start":0,"end":0,"cssClass":"pl-s"}],[{"start":0,"end":12,"cssClass":"pl-s"}],[{"start":0,"end":91,"cssClass":"pl-s"}],[{"start":0,"end":17,"cssClass":"pl-s"}],[{"start":0,"end":7,"cssClass":"pl-s"}],[{"start":4,"end":24,"cssClass":"pl-s1"},{"start":25,"end":26,"cssClass":"pl-c1"},{"start":27,"end":38,"cssClass":"pl-en"},{"start":39,"end":42,"cssClass":"pl-s1"}],[],[{"start":4,"end":7,"cssClass":"pl-k"},{"start":8,"end":20,"cssClass":"pl-en"},{"start":21,"end":32,"cssClass":"pl-s1"},{"start":34,"end":38,"cssClass":"pl-v"},{"start":39,"end":42,"cssClass":"pl-s1"},{"start":45,"end":49,"cssClass":"pl-s1"},{"start":51,"end":54,"cssClass":"pl-s1"},{"start":55,"end":56,"cssClass":"pl-c1"},{"start":57,"end":58,"cssClass":"pl-c1"},{"start":60,"end":62,"cssClass":"pl-c1"},{"start":63,"end":67,"cssClass":"pl-c1"}],[{"start":8,"end":76,"cssClass":"pl-s"}],[{"start":8,"end":11,"cssClass":"pl-k"},{"start":12,"end":13,"cssClass":"pl-s1"},{"start":14,"end":16,"cssClass":"pl-c1"},{"start":17,"end":28,"cssClass":"pl-s1"}],[{"start":12,"end":32,"cssClass":"pl-s1"},{"start":33,"end":34,"cssClass":"pl-s1"},{"start":36,"end":37,"cssClass":"pl-c1"},{"start":38,"end":42,"cssClass":"pl-s1"}],[],[{"start":4,"end":15,"cssClass":"pl-s1"},{"start":16,"end":17,"cssClass":"pl-c1"}],[{"start":4,"end":19,"cssClass":"pl-s1"},{"start":20,"end":21,"cssClass":"pl-c1"},{"start":22,"end":33,"cssClass":"pl-en"},{"start":34,"end":41,"cssClass":"pl-s1"},{"start":43,"end":58,"cssClass":"pl-s1"},{"start":60,"end":67,"cssClass":"pl-s1"}],[{"start":4,"end":7,"cssClass":"pl-k"},{"start":8,"end":22,"cssClass":"pl-s1"},{"start":23,"end":25,"cssClass":"pl-c1"},{"start":26,"end":41,"cssClass":"pl-s1"}],[{"start":8,"end":18,"cssClass":"pl-s1"},{"start":19,"end":20,"cssClass":"pl-c1"},{"start":21,"end":24,"cssClass":"pl-en"},{"start":25,"end":45,"cssClass":"pl-s1"},{"start":46,"end":47,"cssClass":"pl-s1"},{"start":49,"end":52,"cssClass":"pl-k"},{"start":53,"end":54,"cssClass":"pl-s1"},{"start":55,"end":57,"cssClass":"pl-c1"},{"start":58,"end":72,"cssClass":"pl-s1"},{"start":73,"end":79,"cssClass":"pl-s1"}],[{"start":8,"end":17,"cssClass":"pl-s1"},{"start":18,"end":19,"cssClass":"pl-c1"},{"start":20,"end":30,"cssClass":"pl-s1"}],[{"start":8,"end":10,"cssClass":"pl-k"},{"start":11,"end":14,"cssClass":"pl-c1"},{"start":15,"end":25,"cssClass":"pl-en"},{"start":26,"end":40,"cssClass":"pl-s1"},{"start":41,"end":49,"cssClass":"pl-s1"},{"start":51,"end":58,"cssClass":"pl-v"}],[{"start":12,"end":21,"cssClass":"pl-s1"},{"start":22,"end":24,"cssClass":"pl-c1"},{"start":25,"end":39,"cssClass":"pl-s1"},{"start":40,"end":48,"cssClass":"pl-s1"},{"start":49,"end":57,"cssClass":"pl-s1"}],[],[{"start":8,"end":19,"cssClass":"pl-s1"},{"start":20,"end":26,"cssClass":"pl-en"},{"start":27,"end":37,"cssClass":"pl-s1"}],[{"start":8,"end":20,"cssClass":"pl-en"},{"start":21,"end":35,"cssClass":"pl-s1"},{"start":36,"end":42,"cssClass":"pl-s1"},{"start":44,"end":53,"cssClass":"pl-s1"}],[],[{"start":4,"end":19,"cssClass":"pl-s1"},{"start":20,"end":21,"cssClass":"pl-c1"}],[{"start":9,"end":13,"cssClass":"pl-s1"},{"start":15,"end":18,"cssClass":"pl-s1"},{"start":19,"end":27,"cssClass":"pl-s1"}],[{"start":8,"end":11,"cssClass":"pl-k"},{"start":12,"end":16,"cssClass":"pl-s1"},{"start":18,"end":21,"cssClass":"pl-s1"},{"start":22,"end":24,"cssClass":"pl-c1"},{"start":25,"end":28,"cssClass":"pl-en"},{"start":29,"end":40,"cssClass":"pl-s1"},{"start":42,"end":57,"cssClass":"pl-s1"}],[{"start":8,"end":10,"cssClass":"pl-k"},{"start":11,"end":14,"cssClass":"pl-c1"},{"start":15,"end":25,"cssClass":"pl-en"},{"start":26,"end":29,"cssClass":"pl-s1"},{"start":30,"end":38,"cssClass":"pl-s1"},{"start":40,"end":47,"cssClass":"pl-v"}],[],[{"start":4,"end":12,"cssClass":"pl-s1"},{"start":13,"end":14,"cssClass":"pl-c1"},{"start":15,"end":23,"cssClass":"pl-v"},{"start":24,"end":39,"cssClass":"pl-en"},{"start":40,"end":47,"cssClass":"pl-s1"}],[{"start":4,"end":7,"cssClass":"pl-k"},{"start":8,"end":12,"cssClass":"pl-s1"},{"start":14,"end":18,"cssClass":"pl-s1"},{"start":19,"end":21,"cssClass":"pl-c1"},{"start":22,"end":37,"cssClass":"pl-s1"}],[{"start":8,"end":16,"cssClass":"pl-s1"},{"start":17,"end":23,"cssClass":"pl-en"},{"start":24,"end":28,"cssClass":"pl-s1"},{"start":30,"end":34,"cssClass":"pl-s1"},{"start":36,"end":43,"cssClass":"pl-s1"},{"start":43,"end":44,"cssClass":"pl-c1"},{"start":44,"end":48,"cssClass":"pl-c1"}],[{"start":4,"end":10,"cssClass":"pl-k"},{"start":11,"end":19,"cssClass":"pl-s1"}],[],[],[{"start":0,"end":3,"cssClass":"pl-k"},{"start":4,"end":23,"cssClass":"pl-en"}],[{"start":4,"end":11,"cssClass":"pl-s1"},{"start":13,"end":27,"cssClass":"pl-v"}],[{"start":4,"end":19,"cssClass":"pl-s1"},{"start":21,"end":35,"cssClass":"pl-v"}],[{"start":4,"end":11,"cssClass":"pl-s1"},{"start":13,"end":21,"cssClass":"pl-v"},{"start":22,"end":27,"cssClass":"pl-v"},{"start":28,"end":37,"cssClass":"pl-v"},{"start":39,"end":48,"cssClass":"pl-v"},{"start":51,"end":52,"cssClass":"pl-c1"},{"start":53,"end":57,"cssClass":"pl-c1"}],[{"start":2,"end":4,"cssClass":"pl-c1"},{"start":5,"end":13,"cssClass":"pl-v"}],[{"start":4,"end":7,"cssClass":"pl-s"}],[{"start":0,"end":95,"cssClass":"pl-s"}],[{"start":0,"end":29,"cssClass":"pl-s"}],[{"start":0,"end":0,"cssClass":"pl-s"}],[{"start":0,"end":66,"cssClass":"pl-s"}],[{"start":0,"end":98,"cssClass":"pl-s"}],[{"start":0,"end":98,"cssClass":"pl-s"}],[{"start":0,"end":97,"cssClass":"pl-s"}],[{"start":0,"end":0,"cssClass":"pl-s"}],[{"start":0,"end":89,"cssClass":"pl-s"}],[{"start":0,"end":65,"cssClass":"pl-s"}],[{"start":0,"end":0,"cssClass":"pl-s"}],[{"start":0,"end":9,"cssClass":"pl-s"}],[{"start":0,"end":50,"cssClass":"pl-s"}],[{"start":0,"end":84,"cssClass":"pl-s"}],[{"start":0,"end":85,"cssClass":"pl-s"}],[{"start":0,"end":30,"cssClass":"pl-s"}],[{"start":0,"end":0,"cssClass":"pl-s"}],[{"start":0,"end":12,"cssClass":"pl-s"}],[{"start":0,"end":90,"cssClass":"pl-s"}],[{"start":0,"end":17,"cssClass":"pl-s"}],[{"start":0,"end":7,"cssClass":"pl-s"}],[{"start":4,"end":24,"cssClass":"pl-s1"},{"start":25,"end":26,"cssClass":"pl-c1"},{"start":27,"end":38,"cssClass":"pl-en"},{"start":39,"end":42,"cssClass":"pl-s1"}],[],[{"start":4,"end":7,"cssClass":"pl-k"},{"start":8,"end":20,"cssClass":"pl-en"},{"start":21,"end":32,"cssClass":"pl-s1"},{"start":34,"end":38,"cssClass":"pl-v"},{"start":39,"end":42,"cssClass":"pl-s1"},{"start":45,"end":49,"cssClass":"pl-s1"},{"start":51,"end":54,"cssClass":"pl-s1"},{"start":55,"end":56,"cssClass":"pl-c1"},{"start":57,"end":58,"cssClass":"pl-c1"},{"start":60,"end":62,"cssClass":"pl-c1"},{"start":63,"end":67,"cssClass":"pl-c1"}],[{"start":8,"end":76,"cssClass":"pl-s"}],[{"start":8,"end":11,"cssClass":"pl-k"},{"start":12,"end":13,"cssClass":"pl-s1"},{"start":14,"end":16,"cssClass":"pl-c1"},{"start":17,"end":28,"cssClass":"pl-s1"}],[{"start":12,"end":32,"cssClass":"pl-s1"},{"start":33,"end":34,"cssClass":"pl-s1"},{"start":36,"end":37,"cssClass":"pl-c1"},{"start":38,"end":42,"cssClass":"pl-s1"}],[],[{"start":4,"end":18,"cssClass":"pl-s1"},{"start":19,"end":20,"cssClass":"pl-c1"}],[{"start":4,"end":19,"cssClass":"pl-s1"},{"start":20,"end":21,"cssClass":"pl-c1"},{"start":22,"end":33,"cssClass":"pl-en"},{"start":34,"end":41,"cssClass":"pl-s1"},{"start":43,"end":58,"cssClass":"pl-s1"},{"start":60,"end":67,"cssClass":"pl-s1"}],[{"start":4,"end":7,"cssClass":"pl-k"},{"start":8,"end":22,"cssClass":"pl-s1"},{"start":23,"end":25,"cssClass":"pl-c1"},{"start":26,"end":34,"cssClass":"pl-en"},{"start":35,"end":50,"cssClass":"pl-s1"}],[{"start":8,"end":18,"cssClass":"pl-s1"},{"start":19,"end":20,"cssClass":"pl-c1"},{"start":21,"end":24,"cssClass":"pl-en"},{"start":25,"end":45,"cssClass":"pl-s1"},{"start":46,"end":47,"cssClass":"pl-s1"},{"start":49,"end":52,"cssClass":"pl-k"},{"start":53,"end":54,"cssClass":"pl-s1"},{"start":55,"end":57,"cssClass":"pl-c1"},{"start":58,"end":72,"cssClass":"pl-s1"},{"start":73,"end":79,"cssClass":"pl-s1"}],[{"start":8,"end":17,"cssClass":"pl-s1"},{"start":18,"end":19,"cssClass":"pl-c1"},{"start":20,"end":30,"cssClass":"pl-s1"}],[{"start":8,"end":10,"cssClass":"pl-k"},{"start":11,"end":14,"cssClass":"pl-c1"},{"start":15,"end":25,"cssClass":"pl-en"},{"start":26,"end":40,"cssClass":"pl-s1"},{"start":41,"end":49,"cssClass":"pl-s1"},{"start":51,"end":58,"cssClass":"pl-v"}],[{"start":12,"end":21,"cssClass":"pl-s1"},{"start":22,"end":24,"cssClass":"pl-c1"},{"start":25,"end":39,"cssClass":"pl-s1"},{"start":40,"end":48,"cssClass":"pl-s1"},{"start":49,"end":57,"cssClass":"pl-s1"}],[],[{"start":8,"end":22,"cssClass":"pl-s1"},{"start":23,"end":29,"cssClass":"pl-en"},{"start":30,"end":39,"cssClass":"pl-s1"}],[{"start":8,"end":20,"cssClass":"pl-en"},{"start":21,"end":35,"cssClass":"pl-s1"},{"start":36,"end":42,"cssClass":"pl-s1"},{"start":44,"end":53,"cssClass":"pl-s1"}],[],[{"start":4,"end":13,"cssClass":"pl-s1"},{"start":14,"end":15,"cssClass":"pl-c1"},{"start":16,"end":19,"cssClass":"pl-en"},{"start":20,"end":21,"cssClass":"pl-s1"},{"start":22,"end":25,"cssClass":"pl-k"},{"start":26,"end":27,"cssClass":"pl-s1"},{"start":28,"end":30,"cssClass":"pl-c1"},{"start":31,"end":51,"cssClass":"pl-s1"},{"start":52,"end":58,"cssClass":"pl-en"},{"start":62,"end":64,"cssClass":"pl-k"},{"start":65,"end":85,"cssClass":"pl-s1"},{"start":86,"end":90,"cssClass":"pl-k"},{"start":91,"end":92,"cssClass":"pl-c1"}],[{"start":4,"end":15,"cssClass":"pl-s1"},{"start":16,"end":17,"cssClass":"pl-c1"},{"start":19,"end":28,"cssClass":"pl-s1"},{"start":29,"end":30,"cssClass":"pl-c1"},{"start":31,"end":32,"cssClass":"pl-s1"},{"start":33,"end":36,"cssClass":"pl-k"},{"start":37,"end":38,"cssClass":"pl-s1"},{"start":39,"end":41,"cssClass":"pl-c1"},{"start":42,"end":50,"cssClass":"pl-en"},{"start":51,"end":65,"cssClass":"pl-s1"}],[],[{"start":4,"end":19,"cssClass":"pl-s1"},{"start":20,"end":21,"cssClass":"pl-c1"}],[{"start":9,"end":13,"cssClass":"pl-s1"},{"start":15,"end":18,"cssClass":"pl-s1"},{"start":19,"end":27,"cssClass":"pl-s1"}],[{"start":8,"end":11,"cssClass":"pl-k"},{"start":12,"end":16,"cssClass":"pl-s1"},{"start":18,"end":21,"cssClass":"pl-s1"},{"start":22,"end":24,"cssClass":"pl-c1"},{"start":25,"end":28,"cssClass":"pl-en"},{"start":29,"end":40,"cssClass":"pl-s1"},{"start":42,"end":57,"cssClass":"pl-s1"}],[{"start":8,"end":10,"cssClass":"pl-k"},{"start":11,"end":14,"cssClass":"pl-c1"},{"start":15,"end":25,"cssClass":"pl-en"},{"start":26,"end":29,"cssClass":"pl-s1"},{"start":30,"end":38,"cssClass":"pl-s1"},{"start":40,"end":47,"cssClass":"pl-v"}],[],[{"start":4,"end":12,"cssClass":"pl-s1"},{"start":13,"end":14,"cssClass":"pl-c1"},{"start":15,"end":23,"cssClass":"pl-v"},{"start":24,"end":39,"cssClass":"pl-en"},{"start":40,"end":47,"cssClass":"pl-s1"}],[{"start":4,"end":7,"cssClass":"pl-k"},{"start":8,"end":12,"cssClass":"pl-s1"},{"start":14,"end":18,"cssClass":"pl-s1"},{"start":19,"end":21,"cssClass":"pl-c1"},{"start":22,"end":37,"cssClass":"pl-s1"}],[{"start":8,"end":16,"cssClass":"pl-s1"},{"start":17,"end":23,"cssClass":"pl-en"},{"start":24,"end":28,"cssClass":"pl-s1"},{"start":30,"end":34,"cssClass":"pl-s1"},{"start":36,"end":43,"cssClass":"pl-s1"},{"start":43,"end":44,"cssClass":"pl-c1"},{"start":44,"end":48,"cssClass":"pl-c1"}],[{"start":4,"end":10,"cssClass":"pl-k"},{"start":11,"end":19,"cssClass":"pl-s1"}]],"colorizedLines":null,"csv":null,"csvError":null,"dependabotInfo":{"showConfigurationBanner":false,"configFilePath":null,"networkDependabotPath":"/Qiskit/qiskit/network/updates","dismissConfigurationNoticePath":"/settings/dismiss-notice/dependabot_configuration_notice","configurationNoticeDismissed":null},"displayName":"basic.py","displayUrl":"https://github.com/Qiskit/qiskit/blob/main/qiskit/scheduler/methods/basic.py?raw=true","headerInfo":{"blobSize":"5.32 KB","deleteTooltip":"You must be signed in to make or propose changes","editTooltip":"You must be signed in to make or propose changes","ghDesktopPath":"https://desktop.github.com","isGitLfs":false,"onBranch":true,"shortPath":"60b2f20","siteNavLoginPath":"/login?return_to=https%3A%2F%2Fgithub.com%2FQiskit%2Fqiskit%2Fblob%2Fmain%2Fqiskit%2Fscheduler%2Fmethods%2Fbasic.py","isCSV":false,"isRichtext":false,"toc":null,"lineInfo":{"truncatedLoc":"137","truncatedSloc":"114"},"mode":"file"},"image":false,"isCodeownersFile":null,"isPlain":false,"isValidLegacyIssueTemplate":false,"issueTemplate":null,"discussionTemplate":null,"language":"Python","languageID":303,"large":false,"planSupportInfo":{"repoIsFork":null,"repoOwnedByCurrentUser":null,"requestFullPath":"/Qiskit/qiskit/blob/main/qiskit/scheduler/methods/basic.py","showFreeOrgGatedFeatureMessage":null,"showPlanSupportBanner":null,"upgradeDataAttributes":null,"upgradePath":null},"publishBannersInfo":{"dismissActionNoticePath":"/settings/dismiss-notice/publish_action_from_dockerfile","releasePath":"/Qiskit/qiskit/releases/new?marketplace=true","showPublishActionBanner":false},"rawBlobUrl":"https://github.com/Qiskit/qiskit/raw/main/qiskit/scheduler/methods/basic.py","renderImageOrRaw":false,"richText":null,"renderedFileInfo":null,"shortPath":null,"symbolsEnabled":true,"tabSize":4,"topBannersInfo":{"overridingGlobalFundingFile":false,"globalPreferredFundingPath":null,"showInvalidCitationWarning":false,"citationHelpUrl":"https://docs.github.com/github/creating-cloning-and-archiving-repositories/creating-a-repository-on-github/about-citation-files","actionsOnboardingTip":null},"truncated":false,"viewable":true,"workflowRedirectUrl":null,"symbols":{"timed_out":false,"not_analyzed":false,"symbols":[{"name":"as_soon_as_possible","kind":"function","ident_start":962,"ident_end":981,"extent_start":958,"extent_end":3005,"fully_qualified_name":"as_soon_as_possible","ident_utf16":{"start":{"line_number":27,"utf16_col":4},"end":{"line_number":27,"utf16_col":23}},"extent_utf16":{"start":{"line_number":27,"utf16_col":0},"end":{"line_number":77,"utf16_col":19}}},{"name":"update_times","kind":"function","ident_start":2009,"ident_end":2021,"extent_start":2005,"extent_end":2219,"fully_qualified_name":"update_times","ident_utf16":{"start":{"line_number":53,"utf16_col":8},"end":{"line_number":53,"utf16_col":20}},"extent_utf16":{"start":{"line_number":53,"utf16_col":4},"end":{"line_number":56,"utf16_col":42}}},{"name":"as_late_as_possible","kind":"function","ident_start":3012,"ident_end":3031,"extent_start":3008,"extent_end":5449,"fully_qualified_name":"as_late_as_possible","ident_utf16":{"start":{"line_number":80,"utf16_col":4},"end":{"line_number":80,"utf16_col":23}},"extent_utf16":{"start":{"line_number":80,"utf16_col":0},"end":{"line_number":136,"utf16_col":19}}},{"name":"update_times","kind":"function","ident_start":4276,"ident_end":4288,"extent_start":4272,"extent_end":4486,"fully_qualified_name":"update_times","ident_utf16":{"start":{"line_number":109,"utf16_col":8},"end":{"line_number":109,"utf16_col":20}},"extent_utf16":{"start":{"line_number":109,"utf16_col":4},"end":{"line_number":112,"utf16_col":42}}}]}},"copilotInfo":null,"copilotAccessAllowed":false,"csrf_tokens":{"/Qiskit/qiskit/branches":{"post":"c_5wRCq7bHpJA72qVvuVOPqPoK1RnIgL6budhlTjSUBuXcYNa8FNycaL49T4AKoyPtkCC6ykbP9a6tunIE9AyQ"},"/repos/preferences":{"post":"riGLIxkmITkw2IsHxtcyNVBDLd2VpRKzckvyVPsmsiorZvHpeNDsQ2lFvpqHNVzQN3fErAu3009buF5-qk4ifw"}}},"title":"qiskit/qiskit/scheduler/methods/basic.py at main ยท Qiskit/qiskit"}