QASM3 load with qiskit-cpp
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 45/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- cpp
- Lĩnh vực
- quantum-computing
Hướng nghiên cứu
Start by locating qiskit-cpp's existing QuantumCircuit construction and any QASM parsing entry points; the issue names no C++ files or tests. Use Python's qiskit.qasm3.loads behavior as the reference, and consider how QASM3 input should become a QuantumCircuit that can be run by the C++ program. Done means QASM3 can be loaded and converted successfully.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
What should we add?
Current Issue
In the Python version of Qiskit, you can use qiskit.qasm3.loads to convert QASM3 into a QuantumCircuit and run that circuit.
However, qiskit-cpp cannot convert QASM3 into a QuantumCircuit.
Therefore, it is not possible to run QASM3 on the C++ program.
python program:
from qiskit import qasm3
from qiskit_ibm_runtime import QiskitRuntimeService, SamplerV2
from qiskit.transpiler import generate_preset_pass_manager
# Get backend
...
# Load a OpenQASM file
with open("simple.qasm", "r") as f:
qasm_str = f.read()
qc = qasm3.loads(qasm_str) # qiskit-cpp does not have this feature.
# Transpile
pm = generate_preset_pass_manager(target=backend.target, optimization_level=1)
isa_circuit = pm.run(qc)
# Run circuit
sampler = SamplerV2(mode=backend)
job = sampler.run([isa_circuit], shots=100)
# Get result
result = job.result();
print(result[0].data.meas.get_counts())
Request
I would like you to implement a feature in qiskit-cpp that loads QASM3 and converts it into a QuantumCircuit.
This will allow you to run QASM3 on the C++ program.
- Ngôn ngữ chính
- C++
- Star
- 41
- Fork
- 26
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Không có hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của Qiskit/qiskit-cpp
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 95/100
Qiskit/qiskit-cpp#167 ·
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Qiskit/qiskit-cpp#140 · 2 bình luận ·
-
bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 52/100
Qiskit/qiskit-cpp#165 ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 64/100
Qiskit/qiskit-cpp#163 · 1 bình luận ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 58/100
Qiskit/qiskit-cpp#162 ·
Tất cả issue của Qiskit/qiskit-cpp
Issue tương tự
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
objectionary/game-of-life#74 ·
-
bug fmt low priority
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
qbittorrent/qBittorrent#25176 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
lxqt/lxqt-powermanagement#500 · 1 bình luận ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
scp-fs2open/fs2open.github.com#7965 ·
Maintainer thường phản hồi trong vòng 1 ngày