Skip to content

Commit

Permalink
empty library
Browse files Browse the repository at this point in the history
  • Loading branch information
Diego Ristè committed Dec 8, 2017
1 parent e44a228 commit 2c0ee59
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion src/python/qgl2/basic_sequences/CR.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ def main():
# cr.pulse_params['length'] = 30e-9
# cr.pulse_params['phase'] = pi/4

# ChannelLibraries.channelLib = ChannelLibraries.ChannelLibrary()
# ChannelLibraries.channelLib = ChannelLibraries.ChanneLibrary(blank=True)
# ChannelLibraries.channelLib.channelDict = {
# 'q1-gate': qg1,
# 'q1': q1,
Expand Down
22 changes: 11 additions & 11 deletions src/python/qgl2/basic_sequences/RB.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def create_RB_seqs(numQubits, lengths, repeats=32, interleaveGate=None):
# else:
# raise Exception("Can only handle one or two qubits.")

# # Create lists of of random integers
# # Create lists of of random integers
# # Subtract one from length for recovery gate
# seqs = []
# for length in lengths:
Expand Down Expand Up @@ -70,7 +70,7 @@ def create_RB_seqs(numQubits, lengths, repeats=32, interleaveGate=None):
else:
raise Exception("Can only handle one or two qubits.")

# Create lists of random integers
# Create lists of random integers
# Subtract one from length for recovery gate
seqs = []
for length in lengths:
Expand All @@ -95,7 +95,7 @@ def create_RB_seqs(numQubits, lengths, repeats=32, interleaveGate=None):
@qgl2decl
def SingleQubitRB(qubit: qbit, seqs, showPlot=False):
"""
Single qubit randomized benchmarking using 90 and 180 generators.
Single qubit randomized benchmarking using 90 and 180 generators.
Parameters
----------
Expand Down Expand Up @@ -151,7 +151,7 @@ def SingleQubitRB(qubit: qbit, seqs, showPlot=False):
@qgl2decl
def TwoQubitRB(q1: qbit, q2: qbit, seqs, showPlot=False, suffix=""):
"""
Two qubit randomized benchmarking using 90 and 180 single qubit generators and ZX90
Two qubit randomized benchmarking using 90 and 180 single qubit generators and ZX90
Parameters
----------
Expand Down Expand Up @@ -198,7 +198,7 @@ def TwoQubitRB(q1: qbit, q2: qbit, seqs, showPlot=False, suffix=""):
@qgl2decl
def SingleQubitRB_AC(qubit: qbit, seqs, showPlot=False):
"""
Single qubit randomized benchmarking using atomic Clifford pulses.
Single qubit randomized benchmarking using atomic Clifford pulses.
Parameters
----------
Expand Down Expand Up @@ -258,7 +258,7 @@ def getPulseSeq(qubit: qbit, pulseSeqStr) -> sequence:
@qgl2decl
def SingleQubitIRB_AC(qubit: qbit, seqFile, showPlot=False):
"""
Single qubit interleaved randomized benchmarking using atomic Clifford pulses.
Single qubit interleaved randomized benchmarking using atomic Clifford pulses.
Parameters
----------
Expand Down Expand Up @@ -351,7 +351,7 @@ def SingleQubitIRB_AC(qubit: qbit, seqFile, showPlot=False):
@qgl2decl
def SingleQubitRBT(qubit: qbit, seqFileDir, analyzedPulse: pulse, showPlot=False):
"""
Single qubit randomized benchmarking using atomic Clifford pulses.
Single qubit randomized benchmarking using atomic Clifford pulses.
Parameters
----------
Expand Down Expand Up @@ -436,11 +436,11 @@ def SingleQubitRBT(qubit: qbit, seqFileDir, analyzedPulse: pulse, showPlot=False
@qgl2decl
def SimultaneousRB_AC(qubits: qbit_list, seqs, showPlot=False):
"""
Simultaneous randomized benchmarking on multiple qubits using atomic Clifford pulses.
Simultaneous randomized benchmarking on multiple qubits using atomic Clifford pulses.
Parameters
----------
qubits : iterable of logical channels to implement seqs on (list or tuple)
qubits : iterable of logical channels to implement seqs on (list or tuple)
seqs : a tuple of sequences created for each qubit in qubits
showPlot : whether to plot (boolean)
Expand Down Expand Up @@ -507,7 +507,7 @@ def main():
# Set up 2 qbits, following model in QGL/test/test_Sequences

# FIXME: Cannot use these in current QGL2 compiler, because
# a: QGL2 doesn't understand creating class instances, and
# a: QGL2 doesn't understand creating class instances, and
# b: QGL2 currently only understands the fake Qbits
# qg1 = LogicalMarkerChannel(label="q1-gate")
# q1 = Qubit(label='q1', gate_chan=qg1)
Expand Down Expand Up @@ -535,7 +535,7 @@ def main():
# mq1q2g = LogicalMarkerChannel(label='M-q1q2-gate')
# m12 = Measurement(label='M-q1q2', gate_chan = mq1q2g, trig_chan=dTrig)

# ChannelLibraries.channelLib = ChannelLibraries.ChannelLibrary()
# ChannelLibraries.channelLib = ChannelLibraries.ChanneLibrary(blank=True)
# ChannelLibraries.channelLib.channelDict = {
# 'q1-gate': qg1,
# 'q1': q1,
Expand Down
2 changes: 1 addition & 1 deletion src/python/qgl2/basic_sequences/T1T2.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ def main():
# Mq1gate = LogicalMarkerChannel(label='M-q1-gate')
# m = Measurement(label='M-q1', gate_chan = Mq1gate, trig_chan = dTrig)

# ChannelLibraries.channelLib = ChannelLibraries.ChannelLibrary()
# ChannelLibraries.channelLib = ChannelLibraries.ChanneLibrary(blank=True)
# ChannelLibraries.channelLib.channelDict = {
# 'q1-gate': qg1,
# 'q1': q1,
Expand Down
2 changes: 1 addition & 1 deletion test/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def finalize_map(mapping, channels, new=False):
channels[name].phys_chan = channels[value]

if new:
ChannelLibraries.channelLib = ChannelLibraries.ChannelLibrary()
ChannelLibraries.channelLib = ChannelLibraries.ChanneLibrary(blank=True)
ChannelLibraries.channelLib.channelDict = channels
ChannelLibraries.channelLib.build_connectivity_graph()

Expand Down

0 comments on commit 2c0ee59

Please sign in to comment.