Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

How do I apply the same logical->physical qubit mapping to all input circuits?

オープン
#1,061 コメント 5 件 リアクション 1 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
静か
技術スタック
python

調査の方向性

Start by reading the QuantumDevice documentation and the behavior of device.run([circuit1, circuit2]) described in the issue. Determine whether a shared logical-to-physical mapping can be configured for all input circuits; done means explaining how to do this or identifying the missing capability and its scope.

索引モデルが issue の本文から書いたものです。

説明

We have a scenario in which two (or more) circuits related to each other (at the level of physical qubits) need to be executed on the device.

The relation between the circuits can be illustrated as in the following image from https://arxiv.org/pdf/2311.05933
Image

Let's say in circuit1 there are 2-qubit gates between (1, 2), (3, 4), (5, 6), ...
Then the second circuit (circuit2) is constructed in a way that the 2-qubit gates are between (2, 3), (4, 5), (6, 7), ... shifted by one basically. We want this structure to be preserved at the level of physical qubits.

Instead, when we run the two circuits through device.run([circuit1, circuit2]) (where device: QuantumDevice), the logical qubits of the two circuits are mapped independently to the physical qubits of the device, and in this process, the relation in the construction of the two circuits is lost. For example, on ibm devices, these two routings can happen:

circuit1

q_1 -> 1
q_2 -> 2
q_3 -> 3
q_4 -> 4

circuit2

q_1 -> 3
q_2 -> 1
q_3 -> 2
q_4 -> 4

Question

Is there a way to override the device settings so that the transformation is the same for all circuits passed in the input list?

主要言語
Python
スター
117
フォーク
66
平均マージ
1日 5時間
マージ済み PR(30日)
36

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

qBraid/qBraid のほかの issue

qBraid/qBraid の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。