Skip to content

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

Open
raunakkumarsingh wants to merge 1 commit intoeclipse-xacc:masterfrom
raunakkumarsingh:master
Open

Fix: XACC install failure with Qrack - error: conversion from ‘BigInteger’ to ‘bool’ is ambiguous#586
raunakkumarsingh wants to merge 1 commit intoeclipse-xacc:masterfrom
raunakkumarsingh:master

Conversation

@raunakkumarsingh
Copy link

Issue: #584
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.

Signed-off-by: raunakkumarsingh <raunakkumar.india@gmail.com>
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