You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am running the latest versions of pyQuil and the Forest SDK
I checked to make sure that this bug has not already been reported
Issue Description
I tried using BARENCO gate, i understand its experimental feature. But, the gate seems to provide non-unitary matrix when used with the following values. {'alpha': -0.033780566167632184, 'phi': 0.0320570678937734, 'theta': 1.0471975511965976}
customgate = DefGate(f'BARENCO', matrix)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/xxx/quilenv/lib/python3.11/site-packages/pyquil/quilbase.py", line 683, in __new__
DefGate._validate_matrix(matrix, parameters is not None and len(parameters) > 0)
File "/Users/xxx/quilenv/lib/python3.11/site-packages/pyquil/quilbase.py", line 721, in _validate_matrix
raise ValueError("Matrix must be unitary.")
ValueError: Matrix must be unitary.
Pre-Report Checklist
Issue Description
I tried using BARENCO gate, i understand its experimental feature. But, the gate seems to provide non-unitary matrix when used with the following values.
{'alpha': -0.033780566167632184, 'phi': 0.0320570678937734, 'theta': 1.0471975511965976}
How to Reproduce
Code Snippet
Error Output
Environment Context
Operating System:
Python Version (
python -V
): 3.11Quilc Version (
quilc --version
): 1.23.0QVM Version (
qvm --version
): 1.17.1Python Environment Details (
pip freeze
orconda list
):pyquil = 4.14.3
The text was updated successfully, but these errors were encountered: