question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow creation of DeviceSpecification by specifying number of elements.

See original GitHub issue

What is the expected enhancement?

Currently the DeviceSpecification must be initialized with a list of Channels.

https://github.com/Qiskit/qiskit-terra/blob/8b722d92221ec5988a8d4d922a57c4937c2c6d8a/qiskit/pulse/channels/device_specification.py#L27-L34

We should also provide the ability to initialize but a number of elements.

ie.,

schedule = Schedule(n_qubits=5, memory_slots=5, n_control_channels, n_registers=5)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:27 (19 by maintainers)

github_iconTop GitHub Comments

1reaction
taalexandercommented, Jun 11, 2019

Yes, I agree. However, this doesn’t currently within the specification. We should raise an issue on the internal specification with this.

1reaction
taalexandercommented, May 26, 2019

I think the initializer you propose is good. I would prefer from_device to be a constructor.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Bootstrap - Mock Test
Every mock test is supplied with a mock test key to let you verify the final ... C - Grid columns are created...
Read more >
Virtual I/O Device (VIRTIO) Version 1.1
This document describes the specifications of the “virtio” family of devices. These devices are found in virtual environments, yet by design they look...
Read more >
Apple iPhone 12 - Specifications
Specifications of the Apple iPhone 12. Dimensions: 71.5 x 146.7 x 7.4 mm, Weight: 164 g, SoC: Apple A14 Bionic, CPU: 2x Firestorm,...
Read more >
Configuring, Verifying, and Committing a Zone
The zonecfg command can also be used to persistently specify the resource ... Note that the only required elements to create a non-global...
Read more >
LXI Device Specification Rev 1.6
move to external specifications, but section numbers remain in this document as placeholder to maintain numbering. The newly created LXI ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found