Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

QASM3 load with qiskit-cpp

Đang mở
#166 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

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

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Qiskit/qiskit-cpp

Tất cả issue của Qiskit/qiskit-cpp

Issue tương tự

Thêm issue về C++

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.