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

tensor network representation of a tensor circuit #196

Closed
Marsmmz opened this issue Nov 25, 2023 · 2 comments
Closed

tensor network representation of a tensor circuit #196

Marsmmz opened this issue Nov 25, 2023 · 2 comments

Comments

@Marsmmz
Copy link

Marsmmz commented Nov 25, 2023

I'm working with tensorcircuit to build my quantum circuit and I've notice than we can use projector from tensorcircuit.quantum and it will return a QuOperator object which represent an operator in tensor network form. However, I can't figure out how to apply this porjector to my circuit. I think perhaps I need to represent my circuit in tensor network form. But I can't find relevent functions.

Can anybody please tell me how I can represent my tc.Circuit class circuit to as a tensor network? Many thanks!

@refraction-ray
Copy link
Member

say if you have c = tc.Circuit(n), then c.quvector() is enough to extract the circuit as a tensor network in the format of QuVector

@Marsmmz
Copy link
Author

Marsmmz commented Nov 27, 2023

Thanks a lot!

@Marsmmz Marsmmz closed this as completed Nov 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants