amazon-braket / amazon-braket-sdk-python

A Python SDK for interacting with quantum devices on Amazon Braket
https://aws.amazon.com/braket/
Apache License 2.0
296 stars 118 forks source link

Strange behavior where circuits fail to run on Rigetti #239

Closed singular-value closed 3 years ago

singular-value commented 3 years ago

Describe the bug I submitted six circuits to IonQ and to Rigetti. All six circuits are very similar-->same ansatz, but different variational parameters.

To reproduce Circuit 1 and 2 are printed below. Note that they are extremely similar-->just different rotation angles:

T  : |  0  |   1    |   2    |   3    |    4    |    5     |6|  7  |   8    |   9    |   10   |   11    |   12    |   13    |   14    |   15    |   16    |   17    |   18    |   19    |   20   |

q0 : -Rz(0)-Rx(1.57)-Rz(6.34)-Rx(1.57)-Rz(-3.14)-Rz(3.39)---C-Rz(0)-Rx(1.57)-Rz(6.8)--Rx(1.57)-Rz(-3.14)-Rz(3.02)---------------------------------------------------------------------------------
                                                            |                                                                                                                                     
q1 : -Rz(0)-Rx(1.57)-Rz(6.24)-Rx(1.57)-Rz(-3.14)-Rz(3.53)---X-C-----Rz(0)----Rx(1.57)-Rz(5.8)--Rx(1.57)--Rz(-3.14)-Rz(3.07)-----------------------------------------------------------------------
                                                              |                                                                                                                                   
q2 : -Rz(0)-Rx(1.57)-Rz(6.25)-Rx(1.57)-Rz(-3.14)-Rz(3.23)-----X-----C--------Rz(0)----Rx(1.57)-Rz(6.77)--Rx(1.57)--Rz(-3.14)-Rz(3.05)-------------------------------------------------------------
                                                                    |                                                                                                                             
q3 : -Rz(0)-Rx(1.57)-Rz(6.35)-Rx(1.57)-Rz(-3.14)-Rz(2.14)-----------X--------C--------Rz(0)----Rx(1.57)--Rz(5.72)--Rx(1.57)--Rz(-3.14)-Rz(3.22)---------------------------------------------------
                                                                             |                                                                                                                    
q4 : -Rz(0)-Rx(1.57)-Rz(6.24)-Rx(1.57)-Rz(-3.14)-Rz(3.52)--------------------X--------C--------Rz(0)-----Rx(1.57)--Rz(6.83)--Rx(1.57)--Rz(-3.14)-Rz(3.13)-----------------------------------------
                                                                                      |                                                                                                           
q5 : -Rz(0)-Rx(1.57)-Rz(6.34)-Rx(1.57)-Rz(-3.14)-Rz(4.73)-----------------------------X--------C---------Rz(0)-----Rx(1.57)--Rz(5.79)--Rx(1.57)--Rz(-3.14)-Rz(3.25)-------------------------------
                                                                                               |                                                                                                  
q6 : -Rz(0)-Rx(1.57)-Rz(6.28)-Rx(1.57)-Rz(-3.14)-Rz(3.31)--------------------------------------X---------C---------Rz(0)-----Rx(1.57)--Rz(6.83)--Rx(1.57)--Rz(-3.14)-Rz(3.15)---------------------
                                                                                                         |                                                                                        
q7 : -Rz(0)-Rx(1.57)-Rz(6.25)-Rx(1.57)-Rz(-3.14)-Rz(3.51)------------------------------------------------X---------C---------Rz(0)-----Rx(1.57)--Rz(5.66)--Rx(1.57)--Rz(-3.14)-Rz(3.03)-----------
                                                                                                                   |                                                                              
q8 : -Rz(0)-Rx(1.57)-Rz(5.98)-Rx(1.57)-Rz(-3.14)-Rz(0.0288)--------------------------------------------------------X---------C---------Rz(0)-----Rx(1.57)--Rz(6.74)--Rx(1.57)--Rz(-3.14)-Rz(2.97)-
                                                                                                                             |                                                                    
q9 : -Rz(0)-Rx(1.57)-Rz(5.38)-Rx(1.57)-Rz(-3.14)-Rz(3.24)--------------------------------------------------------------------X---------Rz(0)-----Rx(1.57)--Rz(6.72)--Rx(1.57)--Rz(-3.14)-Rz(3.01)-

T  : |  0  |   1    |   2    |   3    |    4    |    5     |6|  7  |   8    |   9    |   10   |   11    |   12    |   13    |   14    |   15    |   16    |   17    |   18    |   19    |   20   |

Circuit 2:

T  : |  0  |   1    |   2    |   3    |    4    |   5    |6|  7  |   8    |   9    |   10   |   11    |   12    |   13    |   14    |   15    |   16    |   17    |   18    |   19    |   20   |

q0 : -Rz(0)-Rx(1.57)-Rz(6.25)-Rx(1.57)-Rz(-3.14)-Rz(3.3)--C-Rz(0)-Rx(1.57)-Rz(6.8)--Rx(1.57)-Rz(-3.14)-Rz(3.02)---------------------------------------------------------------------------------
                                                          |                                                                                                                                     
q1 : -Rz(0)-Rx(1.57)-Rz(6.24)-Rx(1.57)-Rz(-3.14)-Rz(3.43)-X-C-----Rz(0)----Rx(1.57)-Rz(5.79)-Rx(1.57)--Rz(-3.14)-Rz(2.97)-----------------------------------------------------------------------
                                                            |                                                                                                                                   
q2 : -Rz(0)-Rx(1.57)-Rz(6.25)-Rx(1.57)-Rz(-3.14)-Rz(3.13)---X-----C--------Rz(0)----Rx(1.57)-Rz(6.77)--Rx(1.57)--Rz(-3.14)-Rz(3.15)-------------------------------------------------------------
                                                                  |                                                                                                                             
q3 : -Rz(0)-Rx(1.57)-Rz(6.34)-Rx(1.57)-Rz(-3.14)-Rz(2.15)---------X--------C--------Rz(0)----Rx(1.57)--Rz(5.72)--Rx(1.57)--Rz(-3.14)-Rz(3.22)---------------------------------------------------
                                                                           |                                                                                                                    
q4 : -Rz(0)-Rx(1.57)-Rz(6.24)-Rx(1.57)-Rz(-3.14)-Rz(3.52)------------------X--------C--------Rz(0)-----Rx(1.57)--Rz(6.83)--Rx(1.57)--Rz(-3.14)-Rz(3.22)-----------------------------------------
                                                                                    |                                                                                                           
q5 : -Rz(0)-Rx(1.57)-Rz(6.34)-Rx(1.57)-Rz(-3.14)-Rz(4.63)---------------------------X--------C---------Rz(0)-----Rx(1.57)--Rz(5.79)--Rx(1.57)--Rz(-3.14)-Rz(3.15)-------------------------------
                                                                                             |                                                                                                  
q6 : -Rz(0)-Rx(1.57)-Rz(6.37)-Rx(1.57)-Rz(-3.14)-Rz(3.31)------------------------------------X---------C---------Rz(0)-----Rx(1.57)--Rz(6.73)--Rx(1.57)--Rz(-3.14)-Rz(3.25)---------------------
                                                                                                       |                                                                                        
q7 : -Rz(0)-Rx(1.57)-Rz(6.24)-Rx(1.57)-Rz(-3.14)-Rz(3.4)-----------------------------------------------X---------C---------Rz(0)-----Rx(1.57)--Rz(5.76)--Rx(1.57)--Rz(-3.14)-Rz(3.03)-----------
                                                                                                                 |                                                                              
q8 : -Rz(0)-Rx(1.57)-Rz(6.08)-Rx(1.57)-Rz(-3.14)-Rz(6.21)--------------------------------------------------------X---------C---------Rz(0)-----Rx(1.57)--Rz(6.64)--Rx(1.57)--Rz(-3.14)-Rz(3.08)-
                                                                                                                           |                                                                    
q9 : -Rz(0)-Rx(1.57)-Rz(5.38)-Rx(1.57)-Rz(-3.14)-Rz(3.13)------------------------------------------------------------------X---------Rz(0)-----Rx(1.57)--Rz(6.62)--Rx(1.57)--Rz(-3.14)-Rz(3.11)-

T  : |  0  |   1    |   2    |   3    |    4    |   5    |6|  7  |   8    |   9    |   10   |   11    |   12    |   13    |   14    |   15    |   16    |   17    |   18    |   19    |   20   |

Here the respective repr's for reconstructing the circuits:

"Circuit('instructions': [Instruction('operator': Rz('angle': 0.0, 'qubit_count': 1), 'target': QubitSet([Qubit(0)])), Instruction('operator': Rx('angle': 1.5707963267948966, 'qubit_count': 1), 'target': QubitSet([Qubit(0)])), Instruction('operator': Rz('angle': 6.341628963072522, 'qubit_count': 1), 'target': QubitSet([Qubit(0)])), Instruction('operator': Rx('angle': 1.5707963267948966, 'qubit_count': 1), 'target': QubitSet([Qubit(0)])), Instruction('operator': Rz('angle': -3.141592653589793, 'qubit_count': 1), 'target': QubitSet([Qubit(0)])), Instruction('operator': Rz('angle': 0.0, 'qubit_count': 1), 'target': QubitSet([Qubit(1)])), Instruction('operator': Rx('angle': 1.5707963267948966, 'qubit_count': 1), 'target': QubitSet([Qubit(1)])), Instruction('operator': Rz('angle': 6.238030382761643, 'qubit_count': 1), 'target': QubitSet([Qubit(1)])), Instruction('operator': Rx('angle': 1.5707963267948966, 'qubit_count': 1), 'target': QubitSet([Qubit(1)])), Instruction('operator': Rz('angle': -3.141592653589793, 'qubit_count': 1), 'target': QubitSet([Qubit(1)])), Instruction('operator': Rz('angle': 0.0, 'qubit_count': 1), 'target': QubitSet([Qubit(2)])), Instruction('operator': Rx('angle': 1.5707963267948966, 'qubit_count': 1), 'target': QubitSet([Qubit(2)])), Instruction('operator': Rz('angle': 6.2456264384545825, 'qubit_count': 1), 'target': QubitSet([Qubit(2)])), Instruction('operator': Rx('angle': 1.5707963267948966, 'qubit_count': 1), 'target': QubitSet([Qubit(2)])), Instruction('operator': Rz('angle': -3.141592653589793, 'qubit_count': 1), 'target': QubitSet([Qubit(2)])), Instruction('operator': Rz('angle': 0.0, 'qubit_count': 1), 'target': QubitSet([Qubit(3)])), Instruction('operator': Rx('angle': 1.5707963267948966, 'qubit_count': 1), 'target': QubitSet([Qubit(3)])), Instruction('operator': Rz('angle': 6.345789979091342, 'qubit_count': 1), 'target': QubitSet([Qubit(3)])), Instruction('operator': Rx('angle': 1.5707963267948966, 'qubit_count': 1), 'target': QubitSet([Qubit(3)])), Instruction('operator': Rz('angle': -3.141592653589793, 'qubit_count': 1), 'target': QubitSet([Qubit(3)])), Instruction('operator': Rz('angle': 0.0, 'qubit_count': 1), 'target': QubitSet([Qubit(4)])), Instruction('operator': Rx('angle': 1.5707963267948966, 'qubit_count': 1), 'target': QubitSet([Qubit(4)])), Instruction('operator': Rz('angle': 6.238699795748364, 'qubit_count': 1), 'target': QubitSet([Qubit(4)])), Instruction('operator': Rx('angle': 1.5707963267948966, 'qubit_count': 1), 'target': QubitSet([Qubit(4)])), Instruction('operator': Rz('angle': -3.141592653589793, 'qubit_count': 1), 'target': QubitSet([Qubit(4)])), Instruction('operator': Rz('angle': 0.0, 'qubit_count': 1), 'target': QubitSet([Qubit(5)])), Instruction('operator': Rx('angle': 1.5707963267948966, 'qubit_count': 1), 'target': QubitSet([Qubit(5)])), Instruction('operator': Rz('angle': 6.336482392183313, 'qubit_count': 1), 'target': QubitSet([Qubit(5)])), Instruction('operator': Rx('angle': 1.5707963267948966, 'qubit_count': 1), 'target': QubitSet([Qubit(5)])), Instruction('operator': Rz('angle': -3.141592653589793, 'qubit_count': 1), 'target': QubitSet([Qubit(5)])), Instruction('operator': Rz('angle': 0.0, 'qubit_count': 1), 'target': QubitSet([Qubit(6)])), Instruction('operator': Rx('angle': 1.5707963267948966, 'qubit_count': 1), 'target': QubitSet([Qubit(6)])), Instruction('operator': Rz('angle': 6.278281352263603, 'qubit_count': 1), 'target': QubitSet([Qubit(6)])), Instruction('operator': Rx('angle': 1.5707963267948966, 'qubit_count': 1), 'target': QubitSet([Qubit(6)])), Instruction('operator': Rz('angle': -3.141592653589793, 'qubit_count': 1), 'target': QubitSet([Qubit(6)])), Instruction('operator': Rz('angle': 0.0, 'qubit_count': 1), 'target': QubitSet([Qubit(7)])), Instruction('operator': Rx('angle': 1.5707963267948966, 'qubit_count': 1), 'target': QubitSet([Qubit(7)])), Instruction('operator': Rz('angle': 6.248098370310913, 'qubit_count': 1), 'target': QubitSet([Qubit(7)])), Instruction('operator': Rx('angle': 1.5707963267948966, 'qubit_count': 1), 'target': QubitSet([Qubit(7)])), Instruction('operator': Rz('angle': -3.141592653589793, 'qubit_count': 1), 'target': QubitSet([Qubit(7)])), Instruction('operator': Rz('angle': 0.0, 'qubit_count': 1), 'target': QubitSet([Qubit(8)])), Instruction('operator': Rx('angle': 1.5707963267948966, 'qubit_count': 1), 'target': QubitSet([Qubit(8)])), Instruction('operator': Rz('angle': 5.978385753868273, 'qubit_count': 1), 'target': QubitSet([Qubit(8)])), Instruction('operator': Rx('angle': 1.5707963267948966, 'qubit_count': 1), 'target': QubitSet([Qubit(8)])), Instruction('operator': Rz('angle': -3.141592653589793, 'qubit_count': 1), 'target': QubitSet([Qubit(8)])), Instruction('operator': Rz('angle': 0.0, 'qubit_count': 1), 'target': QubitSet([Qubit(9)])), Instruction('operator': Rx('angle': 1.5707963267948966, 'qubit_count': 1), 'target': QubitSet([Qubit(9)])), Instruction('operator': Rz('angle': 5.379093120802093, 'qubit_count': 1), 'target': QubitSet([Qubit(9)])), Instruction('operator': Rx('angle': 1.5707963267948966, 'qubit_count': 1), 'target': QubitSet([Qubit(9)])), Instruction('operator': Rz('angle': -3.141592653589793, 'qubit_count': 1), 'target': QubitSet([Qubit(9)])), Instruction('operator': Rz('angle': 3.38802499026618, 'qubit_count': 1), 'target': QubitSet([Qubit(0)])), Instruction('operator': Rz('angle': 3.5319158382190596, 'qubit_count': 1), 'target': QubitSet([Qubit(1)])), Instruction('operator': Rz('angle': 3.23091559780782, 'qubit_count': 1), 'target': QubitSet([Qubit(2)])), Instruction('operator': Rz('angle': 2.14290898380323, 'qubit_count': 1), 'target': QubitSet([Qubit(3)])), Instruction('operator': Rz('angle': 3.5222881136274102, 'qubit_count': 1), 'target': QubitSet([Qubit(4)])), Instruction('operator': Rz('angle': 4.7299959039916, 'qubit_count': 1), 'target': QubitSet([Qubit(5)])), Instruction('operator': Rz('angle': 3.3109011520026295, 'qubit_count': 1), 'target': QubitSet([Qubit(6)])), Instruction('operator': Rz('angle': 3.50634267195858, 'qubit_count': 1), 'target': QubitSet([Qubit(7)])), Instruction('operator': Rz('angle': 0.028784289404703966, 'qubit_count': 1), 'target': QubitSet([Qubit(8)])), Instruction('operator': Rz('angle': 3.23896944534171, 'qubit_count': 1), 'target': QubitSet([Qubit(9)])), Instruction('operator': CNot('qubit_count': 2), 'target': QubitSet([Qubit(0), Qubit(1)])), Instruction('operator': Rz('angle': 0.0, 'qubit_count': 1), 'target': QubitSet([Qubit(0)])), Instruction('operator': Rx('angle': 1.5707963267948966, 'qubit_count': 1), 'target': QubitSet([Qubit(0)])), Instruction('operator': Rz('angle': 6.803876649563755, 'qubit_count': 1), 'target': QubitSet([Qubit(0)])), Instruction('operator': Rx('angle': 1.5707963267948966, 'qubit_count': 1), 'target': QubitSet([Qubit(0)])), Instruction('operator': Rz('angle': -3.141592653589793, 'qubit_count': 1), 'target': QubitSet([Qubit(0)])), Instruction('operator': CNot('qubit_count': 2), 'target': QubitSet([Qubit(1), Qubit(2)])), Instruction('operator': Rz('angle': 3.01523891889415, 'qubit_count': 1), 'target': QubitSet([Qubit(0)])), Instruction('operator': Rz('angle': 0.0, 'qubit_count': 1), 'target': QubitSet([Qubit(1)])), Instruction('operator': Rx('angle': 1.5707963267948966, 'qubit_count': 1), 'target': QubitSet([Qubit(1)])), Instruction('operator': Rz('angle': 5.798905927443123, 'qubit_count': 1), 'target': QubitSet([Qubit(1)])), Instruction('operator': Rx('angle': 1.5707963267948966, 'qubit_count': 1), 'target': QubitSet([Qubit(1)])), Instruction('operator': Rz('angle': -3.141592653589793, 'qubit_count': 1), 'target': QubitSet([Qubit(1)])), Instruction('operator': CNot('qubit_count': 2), 'target': QubitSet([Qubit(2), Qubit(3)])), Instruction('operator': Rz('angle': 3.07245116045796, 'qubit_count': 1), 'target': QubitSet([Qubit(1)])), Instruction('operator': Rz('angle': 0.0, 'qubit_count': 1), 'target': QubitSet([Qubit(2)])), Instruction('operator': Rx('angle': 1.5707963267948966, 'qubit_count': 1), 'target': QubitSet([Qubit(2)])), Instruction('operator': Rz('angle': 6.771837021166123, 'qubit_count': 1), 'target': QubitSet([Qubit(2)])), Instruction('operator': Rx('angle': 1.5707963267948966, 'qubit_count': 1), 'target': QubitSet([Qubit(2)])), Instruction('operator': Rz('angle': -3.141592653589793, 'qubit_count': 1), 'target': QubitSet([Qubit(2)])), Instruction('operator': CNot('qubit_count': 2), 'target': QubitSet([Qubit(3), Qubit(4)])), Instruction('operator': Rz('angle': 3.04984432508699, 'qubit_count': 1), 'target': QubitSet([Qubit(2)])), Instruction('operator': Rz('angle': 0.0, 'qubit_count': 1), 'target': QubitSet([Qubit(3)])), Instruction('operator': Rx('angle': 1.5707963267948966, 'qubit_count': 1), 'target': QubitSet([Qubit(3)])), Instruction('operator': Rz('angle': 5.715674666839013, 'qubit_count': 1), 'target': QubitSet([Qubit(3)])), Instruction('operator': Rx('angle': 1.5707963267948966, 'qubit_count': 1), 'target': QubitSet([Qubit(3)])), Instruction('operator': Rz('angle': -3.141592653589793, 'qubit_count': 1), 'target': QubitSet([Qubit(3)])), Instruction('operator': CNot('qubit_count': 2), 'target': QubitSet([Qubit(4), Qubit(5)])), Instruction('operator': Rz('angle': 3.22216836598708, 'qubit_count': 1), 'target': QubitSet([Qubit(3)])), Instruction('operator': Rz('angle': 0.0, 'qubit_count': 1), 'target': QubitSet([Qubit(4)])), Instruction('operator': Rx('angle': 1.5707963267948966, 'qubit_count': 1), 'target': QubitSet([Qubit(4)])), Instruction('operator': Rz('angle': 6.828902689810922, 'qubit_count': 1), 'target': QubitSet([Qubit(4)])), Instruction('operator': Rx('angle': 1.5707963267948966, 'qubit_count': 1), 'target': QubitSet([Qubit(4)])), Instruction('operator': Rz('angle': -3.141592653589793, 'qubit_count': 1), 'target': QubitSet([Qubit(4)])), Instruction('operator': CNot('qubit_count': 2), 'target': QubitSet([Qubit(5), Qubit(6)])), Instruction('operator': Rz('angle': 3.12643589353009, 'qubit_count': 1), 'target': QubitSet([Qubit(4)])), Instruction('operator': Rz('angle': 0.0, 'qubit_count': 1), 'target': QubitSet([Qubit(5)])), Instruction('operator': Rx('angle': 1.5707963267948966, 'qubit_count': 1), 'target': QubitSet([Qubit(5)])), Instruction('operator': Rz('angle': 5.785964037090784, 'qubit_count': 1), 'target': QubitSet([Qubit(5)])), Instruction('operator': Rx('angle': 1.5707963267948966, 'qubit_count': 1), 'target': QubitSet([Qubit(5)])), Instruction('operator': Rz('angle': -3.141592653589793, 'qubit_count': 1), 'target': QubitSet([Qubit(5)])), Instruction('operator': CNot('qubit_count': 2), 'target': QubitSet([Qubit(6), Qubit(7)])), Instruction('operator': Rz('angle': 3.24966441857471, 'qubit_count': 1), 'target': QubitSet([Qubit(5)])), Instruction('operator': Rz('angle': 0.0, 'qubit_count': 1), 'target': QubitSet([Qubit(6)])), Instruction('operator': Rx('angle': 1.5707963267948966, 'qubit_count': 1), 'target': QubitSet([Qubit(6)])), Instruction('operator': Rz('angle': 6.8262390910584525, 'qubit_count': 1), 'target': QubitSet([Qubit(6)])), Instruction('operator': Rx('angle': 1.5707963267948966, 'qubit_count': 1), 'target': QubitSet([Qubit(6)])), Instruction('operator': Rz('angle': -3.141592653589793, 'qubit_count': 1), 'target': QubitSet([Qubit(6)])), Instruction('operator': CNot('qubit_count': 2), 'target': QubitSet([Qubit(7), Qubit(8)])), Instruction('operator': Rz('angle': 3.14864918686543, 'qubit_count': 1), 'target': QubitSet([Qubit(6)])), Instruction('operator': Rz('angle': 0.0, 'qubit_count': 1), 'target': QubitSet([Qubit(7)])), Instruction('operator': Rx('angle': 1.5707963267948966, 'qubit_count': 1), 'target': QubitSet([Qubit(7)])), Instruction('operator': Rz('angle': 5.663735596697493, 'qubit_count': 1), 'target': QubitSet([Qubit(7)])), Instruction('operator': Rx('angle': 1.5707963267948966, 'qubit_count': 1), 'target': QubitSet([Qubit(7)])), Instruction('operator': Rz('angle': -3.141592653589793, 'qubit_count': 1), 'target': QubitSet([Qubit(7)])), Instruction('operator': CNot('qubit_count': 2), 'target': QubitSet([Qubit(8), Qubit(9)])), Instruction('operator': Rz('angle': 3.02777320820443, 'qubit_count': 1), 'target': QubitSet([Qubit(7)])), Instruction('operator': Rz('angle': 0.0, 'qubit_count': 1), 'target': QubitSet([Qubit(8)])), Instruction('operator': Rx('angle': 1.5707963267948966, 'qubit_count': 1), 'target': QubitSet([Qubit(8)])), Instruction('operator': Rz('angle': 6.738187023137604, 'qubit_count': 1), 'target': QubitSet([Qubit(8)])), Instruction('operator': Rx('angle': 1.5707963267948966, 'qubit_count': 1), 'target': QubitSet([Qubit(8)])), Instruction('operator': Rz('angle': -3.141592653589793, 'qubit_count': 1), 'target': QubitSet([Qubit(8)])), Instruction('operator': Rz('angle': 0.0, 'qubit_count': 1), 'target': QubitSet([Qubit(9)])), Instruction('operator': Rx('angle': 1.5707963267948966, 'qubit_count': 1), 'target': QubitSet([Qubit(9)])), Instruction('operator': Rz('angle': 6.719726775291204, 'qubit_count': 1), 'target': QubitSet([Qubit(9)])), Instruction('operator': Rx('angle': 1.5707963267948966, 'qubit_count': 1), 'target': QubitSet([Qubit(9)])), Instruction('operator': Rz('angle': -3.141592653589793, 'qubit_count': 1), 'target': QubitSet([Qubit(9)])), Instruction('operator': Rz('angle': 2.97149956271392, 'qubit_count': 1), 'target': QubitSet([Qubit(8)])), Instruction('operator': Rz('angle': 3.00769500969803, 'qubit_count': 1), 'target': QubitSet([Qubit(9)]))])"

and

"Circuit('instructions': [Instruction('operator': Rz('angle': 0.0, 'qubit_count': 1), 'target': QubitSet([Qubit(0)])), Instruction('operator': Rx('angle': 1.5707963267948966, 'qubit_count': 1), 'target': QubitSet([Qubit(0)])), Instruction('operator': Rz('angle': 6.245561539489243, 'qubit_count': 1), 'target': QubitSet([Qubit(0)])), Instruction('operator': Rx('angle': 1.5707963267948966, 'qubit_count': 1), 'target': QubitSet([Qubit(0)])), Instruction('operator': Rz('angle': -3.141592653589793, 'qubit_count': 1), 'target': QubitSet([Qubit(0)])), Instruction('operator': Rz('angle': 0.0, 'qubit_count': 1), 'target': QubitSet([Qubit(1)])), Instruction('operator': Rx('angle': 1.5707963267948966, 'qubit_count': 1), 'target': QubitSet([Qubit(1)])), Instruction('operator': Rz('angle': 6.244025866500204, 'qubit_count': 1), 'target': QubitSet([Qubit(1)])), Instruction('operator': Rx('angle': 1.5707963267948966, 'qubit_count': 1), 'target': QubitSet([Qubit(1)])), Instruction('operator': Rz('angle': -3.141592653589793, 'qubit_count': 1), 'target': QubitSet([Qubit(1)])), Instruction('operator': Rz('angle': 0.0, 'qubit_count': 1), 'target': QubitSet([Qubit(2)])), Instruction('operator': Rx('angle': 1.5707963267948966, 'qubit_count': 1), 'target': QubitSet([Qubit(2)])), Instruction('operator': Rz('angle': 6.252225507795504, 'qubit_count': 1), 'target': QubitSet([Qubit(2)])), Instruction('operator': Rx('angle': 1.5707963267948966, 'qubit_count': 1), 'target': QubitSet([Qubit(2)])), Instruction('operator': Rz('angle': -3.141592653589793, 'qubit_count': 1), 'target': QubitSet([Qubit(2)])), Instruction('operator': Rz('angle': 0.0, 'qubit_count': 1), 'target': QubitSet([Qubit(3)])), Instruction('operator': Rx('angle': 1.5707963267948966, 'qubit_count': 1), 'target': QubitSet([Qubit(3)])), Instruction('operator': Rz('angle': 6.335634796091014, 'qubit_count': 1), 'target': QubitSet([Qubit(3)])), Instruction('operator': Rx('angle': 1.5707963267948966, 'qubit_count': 1), 'target': QubitSet([Qubit(3)])), Instruction('operator': Rz('angle': -3.141592653589793, 'qubit_count': 1), 'target': QubitSet([Qubit(3)])), Instruction('operator': Rz('angle': 0.0, 'qubit_count': 1), 'target': QubitSet([Qubit(4)])), Instruction('operator': Rx('angle': 1.5707963267948966, 'qubit_count': 1), 'target': QubitSet([Qubit(4)])), Instruction('operator': Rz('angle': 6.241154127765934, 'qubit_count': 1), 'target': QubitSet([Qubit(4)])), Instruction('operator': Rx('angle': 1.5707963267948966, 'qubit_count': 1), 'target': QubitSet([Qubit(4)])), Instruction('operator': Rz('angle': -3.141592653589793, 'qubit_count': 1), 'target': QubitSet([Qubit(4)])), Instruction('operator': Rz('angle': 0.0, 'qubit_count': 1), 'target': QubitSet([Qubit(5)])), Instruction('operator': Rx('angle': 1.5707963267948966, 'qubit_count': 1), 'target': QubitSet([Qubit(5)])), Instruction('operator': Rz('angle': 6.342118064506163, 'qubit_count': 1), 'target': QubitSet([Qubit(5)])), Instruction('operator': Rx('angle': 1.5707963267948966, 'qubit_count': 1), 'target': QubitSet([Qubit(5)])), Instruction('operator': Rz('angle': -3.141592653589793, 'qubit_count': 1), 'target': QubitSet([Qubit(5)])), Instruction('operator': Rz('angle': 0.0, 'qubit_count': 1), 'target': QubitSet([Qubit(6)])), Instruction('operator': Rx('angle': 1.5707963267948966, 'qubit_count': 1), 'target': QubitSet([Qubit(6)])), Instruction('operator': Rz('angle': 6.3707126649971935, 'qubit_count': 1), 'target': QubitSet([Qubit(6)])), Instruction('operator': Rx('angle': 1.5707963267948966, 'qubit_count': 1), 'target': QubitSet([Qubit(6)])), Instruction('operator': Rz('angle': -3.141592653589793, 'qubit_count': 1), 'target': QubitSet([Qubit(6)])), Instruction('operator': Rz('angle': 0.0, 'qubit_count': 1), 'target': QubitSet([Qubit(7)])), Instruction('operator': Rx('angle': 1.5707963267948966, 'qubit_count': 1), 'target': QubitSet([Qubit(7)])), Instruction('operator': Rz('angle': 6.244976921658443, 'qubit_count': 1), 'target': QubitSet([Qubit(7)])), Instruction('operator': Rx('angle': 1.5707963267948966, 'qubit_count': 1), 'target': QubitSet([Qubit(7)])), Instruction('operator': Rz('angle': -3.141592653589793, 'qubit_count': 1), 'target': QubitSet([Qubit(7)])), Instruction('operator': Rz('angle': 0.0, 'qubit_count': 1), 'target': QubitSet([Qubit(8)])), Instruction('operator': Rx('angle': 1.5707963267948966, 'qubit_count': 1), 'target': QubitSet([Qubit(8)])), Instruction('operator': Rz('angle': 6.078001513880854, 'qubit_count': 1), 'target': QubitSet([Qubit(8)])), Instruction('operator': Rx('angle': 1.5707963267948966, 'qubit_count': 1), 'target': QubitSet([Qubit(8)])), Instruction('operator': Rz('angle': -3.141592653589793, 'qubit_count': 1), 'target': QubitSet([Qubit(8)])), Instruction('operator': Rz('angle': 0.0, 'qubit_count': 1), 'target': QubitSet([Qubit(9)])), Instruction('operator': Rx('angle': 1.5707963267948966, 'qubit_count': 1), 'target': QubitSet([Qubit(9)])), Instruction('operator': Rz('angle': 5.3785123202763225, 'qubit_count': 1), 'target': QubitSet([Qubit(9)])), Instruction('operator': Rx('angle': 1.5707963267948966, 'qubit_count': 1), 'target': QubitSet([Qubit(9)])), Instruction('operator': Rz('angle': -3.141592653589793, 'qubit_count': 1), 'target': QubitSet([Qubit(9)])), Instruction('operator': Rz('angle': 3.2956646005674, 'qubit_count': 1), 'target': QubitSet([Qubit(0)])), Instruction('operator': Rz('angle': 3.42917277748067, 'qubit_count': 1), 'target': QubitSet([Qubit(1)])), Instruction('operator': Rz('angle': 3.12953860689028, 'qubit_count': 1), 'target': QubitSet([Qubit(2)])), Instruction('operator': Rz('angle': 2.15181653827597, 'qubit_count': 1), 'target': QubitSet([Qubit(3)])), Instruction('operator': Rz('angle': 3.5198334601855, 'qubit_count': 1), 'target': QubitSet([Qubit(4)])), Instruction('operator': Rz('angle': 4.63074429308082, 'qubit_count': 1), 'target': QubitSet([Qubit(5)])), Instruction('operator': Rz('angle': 3.30566772271154, 'qubit_count': 1), 'target': QubitSet([Qubit(6)])), Instruction('operator': Rz('angle': 3.39600187139173, 'qubit_count': 1), 'target': QubitSet([Qubit(7)])), Instruction('operator': Rz('angle': 6.21465132555694, 'qubit_count': 1), 'target': QubitSet([Qubit(8)])), Instruction('operator': Rz('angle': 3.13243252703164, 'qubit_count': 1), 'target': QubitSet([Qubit(9)])), Instruction('operator': CNot('qubit_count': 2), 'target': QubitSet([Qubit(0), Qubit(1)])), Instruction('operator': Rz('angle': 0.0, 'qubit_count': 1), 'target': QubitSet([Qubit(0)])), Instruction('operator': Rx('angle': 1.5707963267948966, 'qubit_count': 1), 'target': QubitSet([Qubit(0)])), Instruction('operator': Rz('angle': 6.798553865223374, 'qubit_count': 1), 'target': QubitSet([Qubit(0)])), Instruction('operator': Rx('angle': 1.5707963267948966, 'qubit_count': 1), 'target': QubitSet([Qubit(0)])), Instruction('operator': Rz('angle': -3.141592653589793, 'qubit_count': 1), 'target': QubitSet([Qubit(0)])), Instruction('operator': CNot('qubit_count': 2), 'target': QubitSet([Qubit(1), Qubit(2)])), Instruction('operator': Rz('angle': 3.0184746575133, 'qubit_count': 1), 'target': QubitSet([Qubit(0)])), Instruction('operator': Rz('angle': 0.0, 'qubit_count': 1), 'target': QubitSet([Qubit(1)])), Instruction('operator': Rx('angle': 1.5707963267948966, 'qubit_count': 1), 'target': QubitSet([Qubit(1)])), Instruction('operator': Rz('angle': 5.7929670430185825, 'qubit_count': 1), 'target': QubitSet([Qubit(1)])), Instruction('operator': Rx('angle': 1.5707963267948966, 'qubit_count': 1), 'target': QubitSet([Qubit(1)])), Instruction('operator': Rz('angle': -3.141592653589793, 'qubit_count': 1), 'target': QubitSet([Qubit(1)])), Instruction('operator': CNot('qubit_count': 2), 'target': QubitSet([Qubit(2), Qubit(3)])), Instruction('operator': Rz('angle': 2.97080343606539, 'qubit_count': 1), 'target': QubitSet([Qubit(1)])), Instruction('operator': Rz('angle': 0.0, 'qubit_count': 1), 'target': QubitSet([Qubit(2)])), Instruction('operator': Rx('angle': 1.5707963267948966, 'qubit_count': 1), 'target': QubitSet([Qubit(2)])), Instruction('operator': Rz('angle': 6.769052779670602, 'qubit_count': 1), 'target': QubitSet([Qubit(2)])), Instruction('operator': Rx('angle': 1.5707963267948966, 'qubit_count': 1), 'target': QubitSet([Qubit(2)])), Instruction('operator': Rz('angle': -3.141592653589793, 'qubit_count': 1), 'target': QubitSet([Qubit(2)])), Instruction('operator': CNot('qubit_count': 2), 'target': QubitSet([Qubit(3), Qubit(4)])), Instruction('operator': Rz('angle': 3.15312652377536, 'qubit_count': 1), 'target': QubitSet([Qubit(2)])), Instruction('operator': Rz('angle': 0.0, 'qubit_count': 1), 'target': QubitSet([Qubit(3)])), Instruction('operator': Rx('angle': 1.5707963267948966, 'qubit_count': 1), 'target': QubitSet([Qubit(3)])), Instruction('operator': Rz('angle': 5.715273322750833, 'qubit_count': 1), 'target': QubitSet([Qubit(3)])), Instruction('operator': Rx('angle': 1.5707963267948966, 'qubit_count': 1), 'target': QubitSet([Qubit(3)])), Instruction('operator': Rz('angle': -3.141592653589793, 'qubit_count': 1), 'target': QubitSet([Qubit(3)])), Instruction('operator': CNot('qubit_count': 2), 'target': QubitSet([Qubit(4), Qubit(5)])), Instruction('operator': Rz('angle': 3.2217773937568897, 'qubit_count': 1), 'target': QubitSet([Qubit(3)])), Instruction('operator': Rz('angle': 0.0, 'qubit_count': 1), 'target': QubitSet([Qubit(4)])), Instruction('operator': Rx('angle': 1.5707963267948966, 'qubit_count': 1), 'target': QubitSet([Qubit(4)])), Instruction('operator': Rz('angle': 6.828889949354983, 'qubit_count': 1), 'target': QubitSet([Qubit(4)])), Instruction('operator': Rx('angle': 1.5707963267948966, 'qubit_count': 1), 'target': QubitSet([Qubit(4)])), Instruction('operator': Rz('angle': -3.141592653589793, 'qubit_count': 1), 'target': QubitSet([Qubit(4)])), Instruction('operator': CNot('qubit_count': 2), 'target': QubitSet([Qubit(5), Qubit(6)])), Instruction('operator': Rz('angle': 3.2229960824928, 'qubit_count': 1), 'target': QubitSet([Qubit(4)])), Instruction('operator': Rz('angle': 0.0, 'qubit_count': 1), 'target': QubitSet([Qubit(5)])), Instruction('operator': Rx('angle': 1.5707963267948966, 'qubit_count': 1), 'target': QubitSet([Qubit(5)])), Instruction('operator': Rz('angle': 5.788112833721323, 'qubit_count': 1), 'target': QubitSet([Qubit(5)])), Instruction('operator': Rx('angle': 1.5707963267948966, 'qubit_count': 1), 'target': QubitSet([Qubit(5)])), Instruction('operator': Rz('angle': -3.141592653589793, 'qubit_count': 1), 'target': QubitSet([Qubit(5)])), Instruction('operator': CNot('qubit_count': 2), 'target': QubitSet([Qubit(6), Qubit(7)])), Instruction('operator': Rz('angle': 3.15493689605887, 'qubit_count': 1), 'target': QubitSet([Qubit(5)])), Instruction('operator': Rz('angle': 0.0, 'qubit_count': 1), 'target': QubitSet([Qubit(6)])), Instruction('operator': Rx('angle': 1.5707963267948966, 'qubit_count': 1), 'target': QubitSet([Qubit(6)])), Instruction('operator': Rz('angle': 6.727057173254333, 'qubit_count': 1), 'target': QubitSet([Qubit(6)])), Instruction('operator': Rx('angle': 1.5707963267948966, 'qubit_count': 1), 'target': QubitSet([Qubit(6)])), Instruction('operator': Rz('angle': -3.141592653589793, 'qubit_count': 1), 'target': QubitSet([Qubit(6)])), Instruction('operator': CNot('qubit_count': 2), 'target': QubitSet([Qubit(7), Qubit(8)])), Instruction('operator': Rz('angle': 3.2496653094752603, 'qubit_count': 1), 'target': QubitSet([Qubit(6)])), Instruction('operator': Rz('angle': 0.0, 'qubit_count': 1), 'target': QubitSet([Qubit(7)])), Instruction('operator': Rx('angle': 1.5707963267948966, 'qubit_count': 1), 'target': QubitSet([Qubit(7)])), Instruction('operator': Rz('angle': 5.7581529824087925, 'qubit_count': 1), 'target': QubitSet([Qubit(7)])), Instruction('operator': Rx('angle': 1.5707963267948966, 'qubit_count': 1), 'target': QubitSet([Qubit(7)])), Instruction('operator': Rz('angle': -3.141592653589793, 'qubit_count': 1), 'target': QubitSet([Qubit(7)])), Instruction('operator': CNot('qubit_count': 2), 'target': QubitSet([Qubit(8), Qubit(9)])), Instruction('operator': Rz('angle': 3.02862383032992, 'qubit_count': 1), 'target': QubitSet([Qubit(7)])), Instruction('operator': Rz('angle': 0.0, 'qubit_count': 1), 'target': QubitSet([Qubit(8)])), Instruction('operator': Rx('angle': 1.5707963267948966, 'qubit_count': 1), 'target': QubitSet([Qubit(8)])), Instruction('operator': Rz('angle': 6.635136678496163, 'qubit_count': 1), 'target': QubitSet([Qubit(8)])), Instruction('operator': Rx('angle': 1.5707963267948966, 'qubit_count': 1), 'target': QubitSet([Qubit(8)])), Instruction('operator': Rz('angle': -3.141592653589793, 'qubit_count': 1), 'target': QubitSet([Qubit(8)])), Instruction('operator': Rz('angle': 0.0, 'qubit_count': 1), 'target': QubitSet([Qubit(9)])), Instruction('operator': Rx('angle': 1.5707963267948966, 'qubit_count': 1), 'target': QubitSet([Qubit(9)])), Instruction('operator': Rz('angle': 6.622966193357933, 'qubit_count': 1), 'target': QubitSet([Qubit(9)])), Instruction('operator': Rx('angle': 1.5707963267948966, 'qubit_count': 1), 'target': QubitSet([Qubit(9)])), Instruction('operator': Rz('angle': -3.141592653589793, 'qubit_count': 1), 'target': QubitSet([Qubit(9)])), Instruction('operator': Rz('angle': 3.07780389225548, 'qubit_count': 1), 'target': QubitSet([Qubit(8)])), Instruction('operator': Rz('angle': 3.10675029660352, 'qubit_count': 1), 'target': QubitSet([Qubit(9)]))])"

Expected behavior Given that circuit 1 ran on Rigetti, it's weird that circuits 2-6 failed to run. In addition, all 6 circuits ran on IonQ. Perhaps there is some compilation timeout that triggered on circuit 2 and then carried over to circuit 6? (but only for Rigetti?)

Screenshots or logs Task IDs for the circuits for Rigetti, IonQ:

  1. 4ef07c06-6993-4a97-ac6a-df58a625f8bb, 92809656-1642-4863-8e4f-e3cd9b8e7672
  2. 07ce5c4b-9e5b-4880-b2f6-42b47d9c6d37, 3c9df499-a90e-4bcb-82ac-654f109d54f0
  3. 4bb32af4-b47c-480a-a7bc-c279b2bdcbf9, 8b841b6f-e674-4157-a400-d94fbd1a0f63
  4. 3e0aab49-e7e1-429c-8f0b-8522c608f160, 488e179e-d895-405e-984f-9cf6263788f8
  5. bb4d44c9-1d2e-4608-902b-cdfd4272096b, acc1be0e-d9c9-453a-8862-676aeb8feb5e
  6. 1b9af57e-75d5-4770-aaa8-afb1fb23f0ee, 8757c824-d536-4fde-a4df-1095c3cd20e5

System information A description of your system. Please provide:

Additional context I'm also wondering if we were still charged for the failed runs, or if they don't count against us since they didn't actually execute.

jheckey commented 3 years ago

There was internal error at Rigetti that caused the failure. We have alerted them and they are investigating. I will update this as we get more information.

jheckey commented 3 years ago

The Aspen-9 is running tasks again. If you would like to resubmit your tasks, we can see if the error is recreated or if the issue recurs.

jheckey commented 3 years ago

Rigetti has fixed the bug on their end. Please confirm if you are able to run your ansatz.

jheckey commented 3 years ago

I'm also wondering if we were still charged for the failed runs, or if they don't count against us since they didn't actually execute.

No. You will only be charged for COMPLETED tasks, not FAILED or CANCELLED tasks. There are additional charges for simulator and notebook instance runtime as well. https://aws.amazon.com/braket/pricing/

singular-value commented 3 years ago

Thanks for looking into this @jheckey.

We don't need to test the ansatz anymore—will go ahead and close this issue.