Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add QCNN blocks #46

Open
royess opened this issue Jul 17, 2022 · 3 comments
Open

Add QCNN blocks #46

royess opened this issue Jul 17, 2022 · 3 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@royess
Copy link
Contributor

royess commented Jul 17, 2022

Issue Description

I think it will be great if we have blocks to easily construct QCNN, which is a special but important category of quantum neural networks requiring mid-circuit measurements.

Proposed Solution

The key component of QCNN is a "pooling" layer, which includes measurement and a conditional gate on the measurement outcome. And I suppose we can easily implement QCNN by using cond_measure and conditional_gate, described in the white paper tutorials.

Additional References

@royess
Copy link
Contributor Author

royess commented Jul 17, 2022

Besides, I am reproducing QCNN for my research. So I am interested in contributing when I finish it.

@refraction-ray
Copy link
Contributor

Besides, I am reproducing QCNN for my research. So I am interested in contributing when I finish it.

Great! I can think of two ways to make this contribution. 1. as a template function for qcnn in /tensorcircuit/templates/block.py 2. as a integrated Jupyter tutorial on QCNN in /docs/source/tutorial

@refraction-ray
Copy link
Contributor

refraction-ray commented Oct 27, 2022

I suddenly realized that tensorcircuit is perfectly suitable for QCNN implementation as the effective depth of QCNN is rather low and thus we can hopefully simulating training QCNN made of a lot of qubits。

Reversely, also very suitable for mera type circuit (qubits getting more in time direction, eg see https://arxiv.org/pdf/2210.15053.pdf)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants