Skip to content
This repository has been archived by the owner on Jun 12, 2023. It is now read-only.

Update pulse code to new instruction sytntax #375

Conversation

nkanazawa1989
Copy link
Contributor

Summary

Temporary patch for Qiskit-Pulse update.

close #374

Details and comments

Refactoring of interface is planned but not now. This PR aims at making minimal change to the code to eliminate warnings caused by next terra update.

@lcapelluto will review this.


# Following variables should not be optional.
# To keep function interface constant, errors are inserted here.
# TODO: redesign this function in next release
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd recommend opening an issue for this if you haven't already:)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see #376

@chriseclectic chriseclectic added this to the Ignis 0.3 milestone Apr 7, 2020
@mtreinish
Copy link
Collaborator

The ci failures here should be fixed by: #378

from qiskit.pulse.schedule import ParameterizedSchedule
from qiskit.pulse.commands import FrameChangeInstruction
from scipy.optimize import least_squares
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The scipy import needs to be moved before the qiskit imports to fix linter errors

@chriseclectic chriseclectic merged commit 577ecb3 into qiskit-community:master Apr 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Pulse related codes need update
4 participants