Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 124411
Collapse All | Expand All

(-)qi.py (-19 / +11 lines)
Lines 241-266 Link Here
241
    def __init__(self,*qubits,**dict):
241
    def __init__(self,*qubits,**dict):
242
242
243
        apply(Group.__init__, (self,), dict)
243
        apply(Group.__init__, (self,), dict)
244
244
        # create wires ...
245
		# create wires ...
245
        if len(qubits)==1 and isinstance(qubits[0],Integer):
246
		if len(qubits)==1 and isinstance(qubits[0],Integer):
246
            n = qubits[0]
247
			n = qubits[0]
247
            wires=[]
248
248
            for w in range(n):
249
			wires=[]
249
                wires.append(Qubit())
250
			for w in range(n):
250
        else:
251
				wires.append(Qubit())
251
            wires=qubits
252
253
		else:
254
			wires=qubits
255
			
256
252
257
    def add(self,gate):
253
    def add(self,gate):
258
		'''
254
        '''
259
		Add gates to the quantum circuit
255
        Add gates to the quantum circuit
260
		'''
256
        '''
261
        pass
257
        pass
262
258
263
264
265
266

Return to bug 124411