Skip to content

Commit

Permalink
delete get_qubit_channels from utils
Browse files Browse the repository at this point in the history
  • Loading branch information
to24toro committed Jun 5, 2023
1 parent 2a651dd commit 8d92531
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 65 deletions.
21 changes: 0 additions & 21 deletions qiskit/pulse/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,24 +130,3 @@ def deprecated_functionality(func):
stacklevel=2,
since="0.22.0",
)(func)


def get_qubit_channels(backend: BackendV2, qubit: int):
r"""Return a list of channels which operate on the given ``qubit``.
Returns:
List of ``Channel``\s operated on my the given ``qubit``.
"""
channels = []

# add multi-qubit channels
for node_qubits in backend.coupling_map:
if qubit in node_qubits:
control_channels = backend.control_channel(node_qubits)
if control_channels:
channels.extend(control_channels)

# add single qubit channels
channels.append(backend.drive_channel(qubit))
channels.append(backend.measure_channel(qubit))
channels.append(backend.acquire_channel(qubit))
return channels
44 changes: 0 additions & 44 deletions test/python/pulse/test_utils.py

This file was deleted.

0 comments on commit 8d92531

Please sign in to comment.