Fold long circuit drawings

Đang mở
#19 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ó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
55/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ệ
rust
Lĩnh vực
developer-experience

Hướng nghiên cứu

Start by locating _drawer.py and reading the shortcut: note mentioned in the issue, then trace how print(qc) and qc.draw render circuit operations. The issue proposes terminal-width folding and packing non-overlapping gates into columns; done means long drawings wrap and gates on separate qubits share columns, with fold=None disabling folding.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

enhancement
What you want to do

print(qc) draws one column per operation and never wraps, so a circuit with a hundred gates is
one line hundreds of characters wide. _drawer.py notes this as a shortcut:.

Implementation notes

Also pack gates on qubits that don't overlap into the same column, which shortens most drawings a lot.

What it could look like
print(qc)                 # folds at the terminal width
qc.draw(fold=80)          # explicit width; fold=None for no folding
Contributing
  • I would like to open a pull request for this (see CONTRIBUTING.md).
Ngôn ngữ chính
Rust
Star
1
Fork
0
Merge trung bình
12 phút
Pull request đã merge (30 ngày)
4

Chuẩn bị môi trường

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 kaiwave/qsengine

Tất cả issue của kaiwave/qsengine

Issue tương tự

Thêm issue về Rust

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.