-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Fix bug where lo units were not being properly converted #3597
Conversation
@@ -325,13 +325,20 @@ def __init__(self, | |||
self.n_uchannels = n_uchannels | |||
self.u_channel_lo = u_channel_lo | |||
self.meas_levels = meas_levels | |||
self.qubit_lo_range = qubit_lo_range | |||
self.meas_lo_range = meas_lo_range | |||
self.qubit_lo_range = [[range[0] * 1e9, range[1] * 1e9] for range in qubit_lo_range] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's a little confusing seeing range
as a variable and not the built in range
method
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
agreed, should be different name
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@taalexander so can you fix it. also lines 329 and 339. otherwise LGTM.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, I will return to this soon.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in 555f727
With this PR, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes
This should be good to go now. |
qiskit/compiler/assemble.py
Outdated
@@ -77,24 +77,24 @@ def assemble(experiments, | |||
Random seed to control sampling, for when backend is a simulator | |||
|
|||
qubit_lo_freq (list): | |||
List of default qubit LO frequencies. Will be overridden by | |||
List of default qubit lo frequencies in Hz. Will be overridden by |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why lowercase?
Co-Authored-By: Lauren Capelluto <laurencapelluto@gmail.com>
Co-Authored-By: Lauren Capelluto <laurencapelluto@gmail.com>
* Fix backend config where lo ranges were not adjusted to Hz. * Fix bug where assemble/execute accepted parameters in GHz rather than Hz. * linting * Documentation fixes for Hz. * Add channel bandwidth. * bug fix with kwarg pop. * Missing None in kwargs pop. * linting. * Fix range in list comprehension for lo ranges in backend configuration. * Update qiskit/compiler/assemble.py Co-Authored-By: Lauren Capelluto <laurencapelluto@gmail.com> * Update qiskit/compiler/assemble.py Co-Authored-By: Lauren Capelluto <laurencapelluto@gmail.com> * lo to LO in docstrings. Co-authored-by: Matthew Treinish <mtreinish@kortar.org> Co-authored-by: Lauren Capelluto <laurencapelluto@gmail.com> (cherry picked from commit a187d83)
* Fix backend config where lo ranges were not adjusted to Hz. * Fix bug where assemble/execute accepted parameters in GHz rather than Hz. * linting * Documentation fixes for Hz. * Add channel bandwidth. * bug fix with kwarg pop. * Missing None in kwargs pop. * linting. * Fix range in list comprehension for lo ranges in backend configuration. * Update qiskit/compiler/assemble.py Co-Authored-By: Lauren Capelluto <laurencapelluto@gmail.com> * Update qiskit/compiler/assemble.py Co-Authored-By: Lauren Capelluto <laurencapelluto@gmail.com> * lo to LO in docstrings. Co-authored-by: Matthew Treinish <mtreinish@kortar.org> Co-authored-by: Lauren Capelluto <laurencapelluto@gmail.com> (cherry picked from commit a187d83) Co-authored-by: Thomas Alexander <thomasalexander2718@gmail.com>
* Fix backend config where lo ranges were not adjusted to Hz. * Fix bug where assemble/execute accepted parameters in GHz rather than Hz. * linting * Documentation fixes for Hz. * Add channel bandwidth. * bug fix with kwarg pop. * Missing None in kwargs pop. * linting. * Fix range in list comprehension for lo ranges in backend configuration. * Update qiskit/compiler/assemble.py Co-Authored-By: Lauren Capelluto <laurencapelluto@gmail.com> * Update qiskit/compiler/assemble.py Co-Authored-By: Lauren Capelluto <laurencapelluto@gmail.com> * lo to LO in docstrings. Co-authored-by: Matthew Treinish <mtreinish@kortar.org> Co-authored-by: Lauren Capelluto <laurencapelluto@gmail.com>
* Fix backend config where lo ranges were not adjusted to Hz. * Fix bug where assemble/execute accepted parameters in GHz rather than Hz. * linting * Documentation fixes for Hz. * Add channel bandwidth. * bug fix with kwarg pop. * Missing None in kwargs pop. * linting. * Fix range in list comprehension for lo ranges in backend configuration. * Update qiskit/compiler/assemble.py Co-Authored-By: Lauren Capelluto <laurencapelluto@gmail.com> * Update qiskit/compiler/assemble.py Co-Authored-By: Lauren Capelluto <laurencapelluto@gmail.com> * lo to LO in docstrings. Co-authored-by: Matthew Treinish <mtreinish@kortar.org> Co-authored-by: Lauren Capelluto <laurencapelluto@gmail.com> (cherry picked from commit a187d83) # Conflicts: # qiskit/assembler/assemble_schedules.py # qiskit/compiler/assemble.py # qiskit/execute.py # qiskit/providers/models/backendconfiguration.py # test/python/compiler/test_assembler.py
Summary
Closes #3595, #3596. Fixes a bug where lo units are not being properly converted, nor were they being accepted in Hz by
assemble
/execute
andschedule_los
.Details and comments