Skip to content

Commit

Permalink
Add quick qubit selection function to physical channels
Browse files Browse the repository at this point in the history
  • Loading branch information
grahamrow committed Jun 25, 2018
1 parent 7c1e3c4 commit f705705
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions QGL/Channels.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,10 @@ class PhysicalChannel(Channel):
# marker_channel = Optional("PhysicalMarkerChannel")
awg = Optional(AWG)

def q(self):
if isinstance(self.logical_channel, Qubit):
return self.logical_channel

class LogicalChannel(Channel):
'''
The main class from which we will generate sequences.
Expand Down

0 comments on commit f705705

Please sign in to comment.