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

Module 'qutip.qip.circuit' has no attribute 'gate_expand_1toN' and 'gate_expand_2toN' #20

Open
MrSago opened this issue Aug 31, 2021 · 1 comment

Comments

@MrSago
Copy link

MrSago commented Aug 31, 2021

File "...\learn-qc-with-python-and-qsharp\ch05\simulator.py", line 88, in _apply
    matrix = qt.circuit.gate_expand_1toN(
AttributeError: module 'qutip.qip.circuit' has no attribute 'gate_expand_1toN'


File "...\learn-qc-with-python-and-qsharp\ch06\simulator.py", line 124, in _apply
  matrix = qt.circuit.gate_expand_2toN(unitary,
AttributeError: module 'qutip.qip.circuit' has no attribute 'gate_expand_2toN'
@MrSago MrSago changed the title Module 'qutip.qip.circuit' has no attribute 'gate_expand_1toN' Module 'qutip.qip.circuit' has no attribute 'gate_expand_1toN' and 'gate_expand_2toN' Aug 31, 2021
@nadimragab
Copy link

Please use qt.gate_expand_1toN instead of qt.circuit.gate_expand_1toN because gate_expand_1toN, refer to https://qutip.org/docs/latest/modules/qutip/qip/operations/gates.html for more details

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

No branches or pull requests

2 participants