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

why TrainableQuanvFilter output float instead 01? #293

Open
lianghaichen opened this issue Dec 15, 2024 · 0 comments
Open

why TrainableQuanvFilter output float instead 01? #293

lianghaichen opened this issue Dec 15, 2024 · 0 comments

Comments

@lianghaichen
Copy link

when i print the output of function forward of class TrainableQuanvFilter, it shows as follow.in my opinion,after code "data = self.measure(qdev)",the output is a list of 0 or 1(state of a qbit),why output is float?

([[-0.5682, -0.2191, 0.2454, -0.0619],
[-0.5682, -0.2191, 0.2454, -0.0619],
[-0.5682, -0.2191, 0.2454, -0.0619],
[-0.5682, -0.2191, 0.2454, -0.0619],
[-0.5682, -0.2191, 0.2454, -0.0619],
[-0.5682, -0.2191, 0.2454, -0.0619],
[-0.5682, -0.2191, 0.2454, -0.0619],
[-0.5682, -0.2191, 0.2454, -0.0619],
[-0.5682, -0.2191, 0.2454, -0.0619],
[-0.5682, -0.2191, 0.2454, -0.0619]], device='cuda:0',
grad_fn=)

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

1 participant