Closed kjacky closed 3 years ago
Describe the bug The repr() output of a circuit with result types has a syntax error at around the 'result_types' index.
repr()
To reproduce
from braket.circuits import Circuit circ = Circuit().h(0).probability(0) print(repr(circ)) """ Output: Circuit('instructions': [Instruction('operator': H('qubit_count': 1), 'target': QubitSet([Qubit(0)]))]result_types': [Probability(target=QubitSet([Qubit(0)]))]) """
Expected behavior The output should be
Circuit('instructions': [Instruction('operator': H('qubit_count': 1), 'target': QubitSet([Qubit(0)]))], 'result_types': [Probability(target=QubitSet([Qubit(0)]))])
with , ' added before result_types.
, '
result_types
System information A description of your system. Please provide:
Fixed with #254
Describe the bug The
repr()
output of a circuit with result types has a syntax error at around the 'result_types' index.To reproduce
Expected behavior The output should be
with
, '
added beforeresult_types
.System information A description of your system. Please provide: