I'm trying to install cirq_ionq, a python library for running cirq circuits on IonQ's quantum hardware. However, when I try importing it I get an unexpected argument error:
!pip install cirq-ionq
import cirq_ionq
<ipython-input-8-d96952276b12> in <module>
1 get_ipython().system('pip install cirq-ionq')
----> 2 import cirq_ionq
1 frames
/usr/local/lib/python3.7/dist-packages/cirq_ionq/ionq_devices.py in <module>
32 cirq.MeasurementGate,
33 unroll_circuit_op=False,
---> 34 accept_global_phase_op=False,
35 )
36
TypeError: __init__() got an unexpected keyword argument 'accept_global_phase_op'
I am confused why I am getting an unexpected argument error. I'm not calling a constructor, I am importing a library, right?
Could someone please explain this to me? I appreciate it.
cirq-core
andcirq-ionq
versions on your system. What do you get when youpip show cirq-core
andpip show cirq-ionq
? $\endgroup$cirq-core
andcirq-ionq
versions match at0.14.1
so that's not the problem. What happens if youpip install --upgrade cirq-ionq
and try theimporting
cirq-ionq` again. This command should give youcirq-ionq==1.0.0
. $\endgroup$cirq-ionq
just for testing to do a whole new install. Does the import still work if you do!pip install cirq-ionq~=0.14.1
? $\endgroup$