[Design] Add ability to reason about Circuit structure
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
- 25/100
Hướng nghiên cứu
Bắt đầu với ví dụ tfq.convert_to_tensor của issue và entry point tfq.circuit_structure được đề xuất, sau đó xem xét các đầu vào mạch Cirq đã được tuần tự hóa cùng các bảng chữ cái gate và symbol được đề xuất. Để được xem là hoàn tất, cần thống nhất cách biểu diễn cho các đầu ra encoding và params, bao gồm cách biểu diễn cấu trúc mạch, các symbol, qubit và độ sâu.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
It would be a very useful feature to be able to reason about "Circuit structures". Supporting this feature would mean that we would roughly need to be able create an op to do the following:
my_circuit = cirq.Circuit(cirq.H(q0), cirq.CNOT(q0, q1), cirq.Y(q1) ** beta)
circuit_tensor = tfq.convert_to_tensor([my_circuit])
structure_grid = tfq.circuit_structure(circuit_tensor)
print(structure_grid)
# [[...], ...] some kind of meaningful 2d description of the circuit.
# Should maybe be something like [batch_size, ragged on n_qubits, ragged on depth, n_channels]
# Maybe an additional output to track symbols as well ?
My current thinking is that we do something like this:
have the following inputs:
(optional) gate_alphabet where gate_alphabet[gate] = a unique integer value
(optional) symbol_alphabet[symbol_name] = a unique integer value different from any in gate_alphabet
circuits[i] = a serialized cirq.Circuit`
symbol_names = a list of all symbols found in all the circuits in circuits
Outputs:
encoding[i][j][k] = gate_alphabet[operation from circuits[i] at moment j at qubit index k]
params[i][j][k][l] = symbol_alphabet[parameter l from operation from circuits[i] at moment j at qubit index k]
or the value of l if it isn't a symbol.
What do people think ?
Going to leave open for discussion with @vprusso and others.
- Ngôn ngữ chính
- Python
- Star
- 2.2k
- Fork
- 665
- 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
- Không có mẫu pull request
- Đọ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 tensorflow/quantum
-
area/devops help wanted no QC knowledge needed priority/before-0.7.7
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
tensorflow/quantum#1082 · 1 bình luận · 1 reaction ·
-
Support Keras 3Có thể làm lại được @rosspeili đã nhận 73 ngày trước và không có pull request nào đang mở. Đang mởarea/keras help wanted skill-level/intermediate
tensorflow/quantum#1090 · 4 bình luận · 1 người được giao ·
-
Investigate support for JAXĐang mởskill-level/expert
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 30/100
tensorflow/quantum#1089 · 2 bình luận ·
-
area/core priority/after-0.7.7 skill-level/expert
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
tensorflow/quantum#1088 ·
-
Support dynamic quantum circuitsĐang mởarea/circuits priority/after-0.7.7 skill-level/expert
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
tensorflow/quantum#1087 ·
Tất cả issue của tensorflow/quantum
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
PedestrianDynamics/pyFDS-Evac#199 ·
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 65/100
521xueweihan/HelloGitHub#3790 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
sandialabs/atlas-ui-3#978 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area: tests perceived difficulty: 2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Nitjsefnie-Harness-Commons/daedalus#1255 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
hf-audiolm-qwen: `generate_until` hardcodes `.to("cuda")` and aborts on non-CUDA acceleratorsĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
EleutherAI/lm-evaluation-harness#4256 ·
Maintainer thường phản hồi trong vòng 1 ngày