manosgior
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Engagement control
    • Make a copy
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Make a copy Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    Thanks for the feedback. We will address all comments in the camera-ready version. # **Reviewer A** **A.1: QOS contribution/novelty.** **QOS Architecture:** QOS is one of the first attempts to build an operating system for managing QPUs while addressing several unique challenges of quantum computing, including spatial/temporal variances of QPU states, scaling of qubits, fidelity, QPU utilization, etc. The key insight of QOS is that the tradeoffs associated with these challenges are manageable when approached holistically. The QOS architecture follows a layered architecture comprising the QOS transpiler and the QOS runtime. **QOS Transpiler:** The QOS transpiler provides a modular compiler infrastructure for compiling large circuits into smaller *Qernels* that can be executed on smaller, noisy QPUs. To achieve this, the QOS transpiler makes the following contributions: (1) the Qernel abstraction and generic intermediate representation (IR) ($\S5.1$) as a generic substrate to implement different analysis or transformation passes, (2) a modular set of optimization passes ($\S5.2, \S5.3$), and (3) an extensible infrastructure for implementing new circuit compaction techniques through the virtualizer ($\S5.4$). Further, the proposed optimizations in the QOS transpiler are important for two reasons: * *A unified and general approach*: Many optimizations (e.g., gate virtualization [53, 70]) exist only in theory and have not been implemented in practice. The QOS transpiler IR provides a systematic way to express a range of optimizations. * *Performance*: Further, the QOS transpiler provides a modular architecture to combine these optimizations, significantly improving performance, fidelity, and scalability ($\S7.2$). **QOS Runtime:** The QOS runtime schedules the optimized circuits to run on specific QPUs while providing scalable, high-fidelity, and efficient execution of circuits. To achieve this, the QOS runtime makes the following contributions: (1) circuit performance estimation based on three cost functions to explore accuracy-performance tradeoffs systematically, (2) multi-programming to spatially multiplex circuits for increased utilization of QPUs while minimizing fidelity penalties, and (3) a scheduler for temporal multiplexing of circuits for improving the load-balancing and minimizing the waiting times. **A.2: Evaluation vs. SOTA.** There is no end-to-end transpiler that addresses all the challenges covered by QOS, including Qiskit [75]. The related work in the domain of quantum transpilers targets a specific optimization technique, which is not composable. The key advantage of the QOS transpiler is the ability to compose different optimization passes via its generic DAG-based IR (similar to LLVM IR). Therefore, we compare the QOS transpiler against the individual optimization techniques, including qubit mapping, routing, crosstalk mitigation, Qiskit compiler, and multi-programming [48, 56, 21]. **A.3: Selection of transpilation techniques.** In the same vein, the LLVM compiler infrastructure is also not *novel either*; LLVM implements standard compiler optimizations (e.g., deadcode elimination, reachability analysis) that have been proposed since the 1970s. However, LLVM is the prominent compiler framework because it provides a generic, extensible, composable, and modular infrastructure for implementing *existing* compiler optimizations. The QOS transpiler strives for the same goal. **A.4: Collaboration of the QOS Transpiler and the QOS Runtime.** QOS is a layered architecture that decouples the static and dynamic state into the QOS transpiler and the QOS runtime, respectively. The static component is required for analyzing and optimizing the quantum circuits (similarly to program analysis in classical computing) based on the circuit properties, e.g., circuit depth, number, and types of gates. The dynamic component is equally important for scheduling, multiplexing (temporally and spatially), and executing the optimized circuits based on the QPU states, which vary across space and time. # **Reviewer B** **B.1: More technical details.** *a) Transpiler metadata:* The metadata consists of important circuit properties such as depth, width, number of gates, etc., and the properties described in SupermarQ [96], e.g., entanglement ratio, measurement density, and critical depth. We deduce this metadata by traversing the graph IR(s) as part of the QOS transpilation process. *b)* Optimization goals: We optimize the circuit's properties ($\S2, \S7.1, \S7.2$), i.e., circuit size, depth, and number of CNOT gates, which directly impact fidelity. This is achieved by circuit compaction, e.g., circuit cutting or qubit freezing, which eliminates CNOT gates, while lowering the depth. *c) QPU performance:* QPUs exhibit noisy qubits and couplings ($\S2$). Larger circuits have more qubits and gates, therefore lower performance ($\S3.1$). The equations in $\S6.1$ estimate the errors based on the QPU's calibration data and the circuit's properties. Since the errors are probabilistic, we can multiply the individual probabilities to compute the total expected error. *d) Scheduler scoring:* The QOS scheduler provides a generic mechanism to plug different scheduling policies. In the paper, we show a simple policy that strikes a balance between conflicting objectives: fidelity, waiting time, and utilization. The constant *c* tunes this tradeoff by giving priority (higher weight) to the respective objective. By default, we use $c=0.5$ for a balanced approach. Our scheduler can support other scheduling policies too. **B.2: Open-source.** QOS will be released as open-source software. **B.3: Further QPU resource management challenges.** While QOS strives to address pressing challenges in quantum computing, there are still many open challenges, e.g., different types of QPUs (superconducting, neutral atoms, ion traps, etc.), calibration cross-overs, and job migration. # **Reviewer C** **C.1: Novelty.** See A.1. **C.2: Evaluation of tradeoffs.** Quantum computing offers a range of tradeoffs in terms of fidelity, utilization, waiting times, and performance. In our paper, we investigate three such trade-offs: (1) fidelity vs. overheads ($\S7.2$), (2) fidelity vs utilization ($\S7.4$), and (3), fidelity vs. waiting times ($\S7.5$). For the requested tradeoffs with parameters *b* and *s*, we indeed investigated them, but we omitted the results due to the space issue. **C.3: What is borrowed from SOTA.** See A.1. **C.4: QAOA example.** We use QAOA as an example because FrozenQubits can only be applied to QAOA circuits [3]. For other circuits, we can still apply all the remaining techniques. There are numerous quantum benchmarks [47, 57], and QOS supports *all* of them. **C.5: Effective utilization.** Intuition: QPU utilization can be measured both in space (number of qubits) and in time (circuit's duration/depth). Therefore, effective utilization measures *both* metrics. **C.6: Reevaluation policy complexity.** Each such pass costs 10s-100s milliseconds, depending on the size and complexity of the circuits (see C.8.). In reality, the complexity is *constant* since the system sets *N* and *W*, and they do not depend on the actual pending circuits, say *M*, or number of QPUs. Even if $M\gg N$, we always compare up to *N* circuits. Still, since $M$ and $N$ are tunable, we state that the complexity is $O(W \times N)$. Also, we avoid comparing all possible pairs. We filter the circuits based on (1) the same best QPU, (2) low-utilization pairs, and (3) high compatibility scores. In Figure 7, steps 2-4 are applied to a single pair only. **C.7: Results unpacking/unbundling in multiprogramming.** The multi-programmer keeps track of which Qernels are bundled together. The execution results are probability distributions and are represented as key-value pairs of {bitstring: float}. Every bit in the bitstring is the measurement result of a qubit (and the float is a probability in [0,1]). The multi-programmer splits the bitstrings based on the initial Qernels' sizes (i.e., the left-most *n* bits belong to the first Qernel, the rest to the second). **C.8: QOS Transpiler overheads.** For small circuits, the absolute overheads are small (milliseconds), but the factor is large, and vice versa. Certain transpilation stages are NP-hard [89] therefore, larger (uncut) circuits will have exponentially longer compilation runtime. By compacting them with the transpiler, the sum of the individual (smaller) overheads can be lower in comparison to the initial (larger) one. This explains the drop from $16.6\times$ to $2.5\times$ in Table 1. For large enough circuits, our approach will eventually win. **C.9: Figure 10 experimental setup.** Sorry, the takeaway message is incorrect. Our methodology is the ground truth because we compare against the best possible fidelity across all QPUs. We selected the best QPU (on average) based on standard performance metrics (median readout error, median T2 error, etc.). In fact, this is the standard practice adopted by cloud users to select the best-performing QPU. For instance, IBM Auckland offering the best performance metrics (that day), had the longest queue when we ran this experiment. **C.10: Figure 11(a) takeaway.** The takeaway is that the combination of circuit compaction and multi-programming gives both higher fidelity and higher utilization than neither of the techniques achieves individually. The QOS compatibility score achieves higher fidelity than [21] for the same utilization target. Large circuits do not have to run with low fidelity since the QOS transpiler will optimize them and reduce their size. **C.11: Error bars.** We measure effective utilization, which is deterministic and doesn't have any variance. # **Reviewer D** **D.1: Novelty.** See A.1. **D.2: Large-scale hypothetical QPU.** Unfortunately, we do have access to QPUs with more than 133 qubits. For QPUs larger than 133 qubits, we will provide an analytical model to show QOS' performance in the camera-ready version. **D.3: Scheduler scoring.** See B.1(d). **D.4: Performance improvement explanations.** The QOS transpiler improves the circuit properties, i.e., number of CNOTs, depth, and circuit size, which gives the performance improvements ($\S7.2$). The QOS estimator's cost functions accurately identify the best-performing QPU for a given circuit ($\S7.3$). The QOS multi-programmer's compatibility score function improves the effective utilization and minimizes the fidelity penalties ($\S7.4$). The QOS scheduler uses the variable *c* to prioritize fidelity over waiting times, and vice versa ($\S7.5$). **D.5: Evaluation baselines.** See A.2. **D.6: Abstract nit.** Compared to the respective baselines (A.2). # **Reviewer E** **E.1: Difference with heterogeneous SoCs.** Existing classical scheduling cannot be directly applied in the quantum context because of several fundamental differences between QPUs and xPUs (GPU, TPU, etc.). For instance, there exists (1) spatiotemporal performance variance, where daily calibrations vastly affect QPU error rates. The QPU performance is not deterministic in either dimension (time or space). (2) Quantum states collapse when measuring them, which doesn't allow schedulers to preempt and migrate quantum circuits. (3) The QPU architectures also differ in qubit connectivity, which makes reusing pre-compiled quantum programs impossible. When considering different QPU architectures, the programs have to be recompiled. (4) The performance-utilization tradeoff is more challenging in quantum because even low utilization incurs high fidelity penalties ($\S3.3$). **E.2: QOS behaviour.** The QOS transpiler behaves like a compiler, e.g., LLVM. The QOS runtime behaves like a cluster scheduler (space and time multiplexer); its goal is to manage NISQ resources similarly to classical orchestrators. **E.3: Self-contained paper.** We will further expand the background to make the paper more accessible. **E.4: Prior work on multiplexing.** QOS supports spatial and temporal multiplexing. Specifically, QOS implements multi-programming, which is spatial multiplexing, and scheduling, which is time multiplexing. There is limited prior work in multi-programming and scheduling, as cited in $\S8$. **E.5: Multi-QPU environment.** For technical details about QPUs, see [here](https://blogs.nvidia.com/blog/what-is-a-qpu/) and [here](https://www.ibm.com/quantum). For currently available QPUs see [here](https://quantum.ibm.com/services/resources). **E.6: QOS integration.** Yes, QOS is designed for quantum cloud providers, such as IBM, to better manage the QPUs while improving the users' programs' completion time and fidelity. The current IBM cloud supports very limited scheduling, does not support spatial multiplexing, i.e., multi-programming, and does not support scalable circuit compaction workflows. **E.7: Scheduling quanta.** By default, QOS schedules every 100 seconds. Since the current waiting times are already in the order of hours [80-81], we can select a scheduling window of 10-100 seconds. **E.8: Evaluation setup.** All experiments are run on real QPUs, except the scheduler results, which are simulation-based, because we do not own a quantum cluster. All other experiments are based on *real* quantum hardware, specifically the QPUs provided by IBM. We report the average of 5 runs. # **Reviewer F** **F.1: Evaluation against SOTA.** See A.2. **F.2: Transpiler contributions.** See A.1. **F.3: QOS Transpiler metadata.** See B.1(a). **F.4: Evaluation setup.** See E.8. **F.5: QPU pool.** The pool contained all the available IBM QPUs at that time with more than 16 qubits. See Figure 3c, second and third groups (divided by vertical red dashed lines).

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully