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

Bug with Python API with no TNQVM install #14

Open
amccaskey opened this issue Apr 9, 2018 · 0 comments
Open

Bug with Python API with no TNQVM install #14

amccaskey opened this issue Apr 9, 2018 · 0 comments
Assignees
Labels

Comments

@amccaskey
Copy link
Member

If no TNQVM plugins are installed, python api defaults to vqe-dummy accelerator even when the user has specified xacc.setOption('accelerator','blah'). Reported by @eugescu

Easy fix:

	if (!xacc::optionExists("accelerator")) {
		xacc::setAccelerator("vqe-dummy");
		// Set the default Accelerator to TNQVM
		if (xacc::hasAccelerator("tnqvm")) {
			xacc::setAccelerator("tnqvm");
		}
	}
@amccaskey amccaskey added the bug label Apr 9, 2018
@amccaskey amccaskey self-assigned this Apr 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant