-
Notifications
You must be signed in to change notification settings - Fork 6
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
issue with the WBDD backend #4
Comments
It may be due to stale code. Please check now and let me know. Also, the WBDD package is not being maintained now. We now use https://github.com/cda-tum/dd_package package. You can use the MQTDDQuantumCircuit class in quantum_circuit.h to use the Weighted BDD backend. |
Hi Meghana, thank you, we will try. Best, |
Hi, now the previously sent code outputs
The MQTDDQuantumCircuit class behaves as expected. However, right now I was only able to build and use Quasimodo after a few changes. Also, it seems there is now some issue with Hadamards and the BDD backend instead. For example, when I run this
it outputs
When I run this program on the previous version, the BDD backend behaves as expected. Best regards, |
Thanks for the PR. Looks like I missed it when merging branches. I tried using the provided Python interface and ran your code. It behaves as expected. Let me take a look at why directly importing C++ code is causing an issue. Can you try your code with the Python interface? This is the code I used: ` NSHOTS = 1024 numQubits = int(sys.argv[1]) random.seed(int(sys.argv[3])) qc = quasimodo.QuantumCircuit(sys.argv[2], numQubits, int(sys.argv[3])) qc.h(0) samples = {} for i in range(NSHOTS): print (samples) ` The output:
for both BDD and MQTDD backends. Call the above program as - python3 program.py 2 . Eg: python3 program.py 2 BDD 0 |
Your python program also works for me. Could the problem be caused by not using the seed in the C++ code? I wasn't sure what it was for. |
When using Quasimodo for quantum circuit simulation with @s-jobra, there seems to be some issue with doing Hadamard using the WBDD backend. In particular, the following program
outputs
Do you know what could be the issue?
Best,
Ondra
The text was updated successfully, but these errors were encountered: