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

Fix: XACC install failure with Qrack - error: conversion from ‘BigInteger’ to ‘bool’ is ambiguous #585

Closed
wants to merge 1 commit into from

Conversation

raunakkumarsingh
Copy link

@raunakkumarsingh raunakkumarsingh commented Mar 23, 2024

This pull request addresses an issue encountered during the installation of XACC with the Qrack quantum computing framework. The problem arises from an ambiguous conversion error occurring in the codebase, specifically in the context of a conversion from BigInteger to bool.

error: conversion from ‘BigInteger’ to ‘bool’ is ambiguous

This modification ensures that the result of the bitwise AND operation is explicitly compared to zero using bi_compare_0, providing a clear and unambiguous boolean result for the ternary conditional operator.

@raunakkumarsingh raunakkumarsingh closed this by deleting the head repository Mar 23, 2024
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

Successfully merging this pull request may close these issues.

1 participant