diff --git a/docs/guides/DAG-representation.ipynb b/docs/guides/DAG-representation.ipynb index 84a9ac20b3d..a3b869105bf 100644 --- a/docs/guides/DAG-representation.ipynb +++ b/docs/guides/DAG-representation.ipynb @@ -131,7 +131,7 @@ "[DAGOpNode(op=Instruction(name='h', num_qubits=1, num_clbits=0, params=[]), qargs=(,), cargs=()),\n", " DAGOpNode(op=Instruction(name='cx', num_qubits=2, num_clbits=0, params=[]), qargs=(, ), cargs=()),\n", " DAGOpNode(op=Instruction(name='measure', num_qubits=1, num_clbits=1, params=[]), qargs=(,), cargs=(,)),\n", - " DAGOpNode(op=Instruction(name='if_else', num_qubits=1, num_clbits=3, params=[, None]), qargs=(,), cargs=(, , ))]" + " DAGOpNode(op=Instruction(name='if_else', num_qubits=1, num_clbits=3, params=[, None]), qargs=(,), cargs=(, , ))]" ] }, "execution_count": 3, @@ -162,7 +162,7 @@ "output_type": "stream", "text": [ "node name: if_else\n", - "op: Instruction(name='if_else', num_qubits=1, num_clbits=3, params=[, None])\n", + "op: Instruction(name='if_else', num_qubits=1, num_clbits=3, params=[, None])\n", "qargs: (,)\n", "cargs: (, , )\n", "condition: (ClassicalRegister(3, 'c'), 2)\n" diff --git a/docs/guides/build-noise-models.ipynb b/docs/guides/build-noise-models.ipynb index 0a99801777a..c54c1302bce 100644 --- a/docs/guides/build-noise-models.ipynb +++ b/docs/guides/build-noise-models.ipynb @@ -506,7 +506,7 @@ "text": [ "NoiseModel:\n", " Basis gates: ['cx', 'id', 'rz', 'sx', 'u1', 'u2', 'u3']\n", - " Instructions with noise: ['u3', 'u2', 'u1']\n", + " Instructions with noise: ['u1', 'u2', 'u3']\n", " All-qubits errors: ['u1', 'u2', 'u3']\n" ] } @@ -553,7 +553,7 @@ "text": [ "NoiseModel:\n", " Basis gates: ['cx', 'id', 'rz', 'sx', 'u1', 'u2', 'u3']\n", - " Instructions with noise: ['u3', 'u2', 'u1']\n", + " Instructions with noise: ['u1', 'u2', 'u3']\n", " Qubits with noise: [0]\n", " Specific qubit errors: [('u1', (0,)), ('u2', (0,)), ('u3', (0,))]\n" ] @@ -728,7 +728,7 @@ "text": [ "NoiseModel:\n", " Basis gates: ['cx', 'id', 'rz', 'sx', 'u1', 'u2', 'u3']\n", - " Instructions with noise: ['u3', 'cx', 'reset', 'u1', 'measure', 'u2']\n", + " Instructions with noise: ['u2', 'u1', 'u3', 'reset', 'cx', 'measure']\n", " All-qubits errors: ['reset', 'measure', 'u1', 'u2', 'u3', 'cx']\n" ] } @@ -838,7 +838,7 @@ "text": [ "NoiseModel:\n", " Basis gates: ['cx', 'id', 'rz', 'sx', 'u2', 'u3']\n", - " Instructions with noise: ['u3', 'cx', 'reset', 'measure', 'u2']\n", + " Instructions with noise: ['u2', 'u3', 'reset', 'cx', 'measure']\n", " Qubits with noise: [0, 1, 2, 3]\n", " Specific qubit errors: [('reset', (0,)), ('reset', (1,)), ('reset', (2,)), ('reset', (3,)), ('measure', (0,)), ('measure', (1,)), ('measure', (2,)), ('measure', (3,)), ('u2', (0,)), ('u2', (1,)), ('u2', (2,)), ('u2', (3,)), ('u3', (0,)), ('u3', (1,)), ('u3', (2,)), ('u3', (3,)), ('cx', (0, 0)), ('cx', (0, 1)), ('cx', (0, 2)), ('cx', (0, 3)), ('cx', (1, 0)), ('cx', (1, 1)), ('cx', (1, 2)), ('cx', (1, 3)), ('cx', (2, 0)), ('cx', (2, 1)), ('cx', (2, 2)), ('cx', (2, 3)), ('cx', (3, 0)), ('cx', (3, 1)), ('cx', (3, 2)), ('cx', (3, 3))]\n" ] diff --git a/docs/guides/create-transpiler-plugin.ipynb b/docs/guides/create-transpiler-plugin.ipynb index ca0f2b19941..b78b11a3785 100644 --- a/docs/guides/create-transpiler-plugin.ipynb +++ b/docs/guides/create-transpiler-plugin.ipynb @@ -542,7 +542,7 @@ { "data": { "text/plain": [ - "['ag', 'bm', 'default', 'greedy', 'layers', 'lnn', 'rb_default']" + "['rb_default', 'ag', 'bm', 'default', 'greedy', 'layers', 'lnn']" ] }, "execution_count": 7, diff --git a/docs/guides/custom-backend.ipynb b/docs/guides/custom-backend.ipynb index 3a408a76752..e6b97e7d2ae 100644 --- a/docs/guides/custom-backend.ipynb +++ b/docs/guides/custom-backend.ipynb @@ -388,10 +388,10 @@ "output_type": "stream", "text": [ "Post-Transpilation: \n", - "CZ gates: 155\n", - "ECR gates: 6\n", - "SX gates: 303\n", - "RZ gates: 209\n" + "CZ gates: 152\n", + "ECR gates: 8\n", + "SX gates: 301\n", + "RZ gates: 208\n" ] } ], @@ -570,10 +570,10 @@ "name": "stdout", "output_type": "stream", "text": [ - "CZ gates: 827\n", - "X gates: 9\n", - "SX gates: 1528\n", - "RZ gates: 884\n" + "CZ gates: 836\n", + "X gates: 7\n", + "SX gates: 1542\n", + "RZ gates: 873\n" ] } ], diff --git a/docs/guides/debug-qiskit-runtime-jobs.ipynb b/docs/guides/debug-qiskit-runtime-jobs.ipynb index 0232b89ca21..29d6c5cbdfe 100644 --- a/docs/guides/debug-qiskit-runtime-jobs.ipynb +++ b/docs/guides/debug-qiskit-runtime-jobs.ipynb @@ -317,13 +317,13 @@ "output_type": "stream", "text": [ "Noisy results:\n", - " NeatResult([NeatPubResult(vals=array([0.9921875 , 0.99609375, 0.97460938, 0.98046875, 0.98632812,\n", - " 0.97851562])), NeatPubResult(vals=array([0.97460938, 0.97460938, 0.95507812, 0.96289062, 0.96679688,\n", - " 0.96679688])), NeatPubResult(vals=array([0.94140625, 0.94726562, 0.9140625 , 0.91992188, 0.94921875,\n", - " 0.95898438])), NeatPubResult(vals=array([0.91210938, 0.92382812, 0.88476562, 0.90820312, 0.93554688,\n", - " 0.96289062])), NeatPubResult(vals=array([0.87695312, 0.86132812, 0.83789062, 0.85742188, 0.90625 ,\n", - " 0.9296875 ])), NeatPubResult(vals=array([0.859375 , 0.859375 , 0.84375 , 0.86914062, 0.91796875,\n", - " 0.95507812]))])\n", + " NeatResult([NeatPubResult(vals=array([0.97070312, 0.98046875, 0.9921875 , 0.99609375, 0.99023438,\n", + " 0.99023438])), NeatPubResult(vals=array([0.96484375, 0.98242188, 0.99023438, 0.98828125, 0.97851562,\n", + " 0.99023438])), NeatPubResult(vals=array([0.92773438, 0.94335938, 0.9765625 , 0.97460938, 0.97460938,\n", + " 0.98242188])), NeatPubResult(vals=array([0.90820312, 0.91992188, 0.9375 , 0.95507812, 0.94726562,\n", + " 0.9765625 ])), NeatPubResult(vals=array([0.87695312, 0.875 , 0.93554688, 0.9375 , 0.95117188,\n", + " 0.96875 ])), NeatPubResult(vals=array([0.859375 , 0.87695312, 0.90429688, 0.93164062, 0.95898438,\n", + " 0.97460938]))])\n", "\n" ] } @@ -359,22 +359,22 @@ "output_type": "stream", "text": [ "Mean absolute difference between ideal and noisy results for circuits with 1 layers:\n", - " 1.53%\n", + " 1.34%\n", "\n", "Mean absolute difference between ideal and noisy results for circuits with 2 layers:\n", - " 3.32%\n", + " 1.76%\n", "\n", "Mean absolute difference between ideal and noisy results for circuits with 3 layers:\n", - " 6.15%\n", + " 3.68%\n", "\n", "Mean absolute difference between ideal and noisy results for circuits with 4 layers:\n", - " 7.88%\n", + " 5.92%\n", "\n", "Mean absolute difference between ideal and noisy results for circuits with 5 layers:\n", - " 12.18%\n", + " 7.58%\n", "\n", "Mean absolute difference between ideal and noisy results for circuits with 6 layers:\n", - " 11.59%\n", + " 8.24%\n", "\n" ] } @@ -435,22 +435,22 @@ "output_type": "stream", "text": [ "Mean absolute difference between ideal and noisy results for circuits with 1 layers:\n", - " 3.29%\n", + " 0.0%\n", "\n", "Mean absolute difference between ideal and noisy results for circuits with 2 layers:\n", - " 7.55%\n", + " 0.0%\n", "\n", "Mean absolute difference between ideal and noisy results for circuits with 3 layers:\n", - " 13.09%\n", + " 0.0%\n", "\n", "Mean absolute difference between ideal and noisy results for circuits with 4 layers:\n", - " 18.39%\n", + " 0.0%\n", "\n", "Mean absolute difference between ideal and noisy results for circuits with 5 layers:\n", - " 25.13%\n", + " 0.0%\n", "\n", "Mean absolute difference between ideal and noisy results for circuits with 6 layers:\n", - " 28.03%\n", + " 0.0%\n", "\n" ] } @@ -581,19 +581,19 @@ "output_type": "stream", "text": [ "Mean absolute difference for factors [1, 1.1]:\n", - " 4.08%\n", + " 12.42%\n", "\n", "Mean absolute difference for factors [1, 1.1, 1.2]:\n", - " 3.49%\n", + " 6.35%\n", "\n", "Mean absolute difference for factors [1, 1.5, 2]:\n", - " 3.45%\n", + " 6.86%\n", "\n", "Mean absolute difference for factors [1, 1.5, 2, 2.5, 3]:\n", - " 2.45%\n", + " 6.38%\n", "\n", "Mean absolute difference for factors [1, 4]:\n", - " 2.49%\n", + " 9.73%\n", "\n" ] } diff --git a/docs/guides/defaults-and-configuration-options.ipynb b/docs/guides/defaults-and-configuration-options.ipynb index 220d7f3239d..e2a6b329ed2 100644 --- a/docs/guides/defaults-and-configuration-options.ipynb +++ b/docs/guides/defaults-and-configuration-options.ipynb @@ -250,7 +250,7 @@ { "data": { "text/plain": [ - "" + "" ] }, "execution_count": 3, diff --git a/docs/guides/get-qpu-information.ipynb b/docs/guides/get-qpu-information.ipynb index de0826ca161..e181d887612 100644 --- a/docs/guides/get-qpu-information.ipynb +++ b/docs/guides/get-qpu-information.ipynb @@ -182,7 +182,7 @@ { "data": { "text/plain": [ - "" + "" ] }, "execution_count": 4, @@ -313,7 +313,7 @@ { "data": { "text/plain": [ - "QubitProperties(t1=0.00035761168689508034, t2=0.0004750364393368112, frequency=4815138551.9053)" + "QubitProperties(t1=0.00038032238044822836, t2=0.00033625872042838717, frequency=4815145202.847131)" ] }, "execution_count": 6, @@ -335,22 +335,22 @@ { "data": { "text/plain": [ - "{'T1': (0.00027066209780797425,\n", - " datetime.datetime(2025, 7, 31, 20, 26, 9, tzinfo=tzlocal())),\n", - " 'T2': (5.154603366721979e-05,\n", - " datetime.datetime(2025, 7, 31, 20, 26, 9, tzinfo=tzlocal())),\n", - " 'frequency': (4721900352.1746235,\n", - " datetime.datetime(2025, 8, 1, 6, 1, 9, tzinfo=tzlocal())),\n", + "{'T1': (0.00010952481866160394,\n", + " datetime.datetime(2025, 8, 14, 1, 24, 28, tzinfo=tzlocal())),\n", + " 'T2': (4.592939686404861e-05,\n", + " datetime.datetime(2025, 8, 14, 1, 24, 28, tzinfo=tzlocal())),\n", + " 'frequency': (4721906679.222694,\n", + " datetime.datetime(2025, 8, 15, 5, 56, 4, tzinfo=tzlocal())),\n", " 'anharmonicity': (-311978659.73435575,\n", - " datetime.datetime(2025, 8, 1, 6, 1, 9, tzinfo=tzlocal())),\n", - " 'readout_error': (0.0341796875,\n", - " datetime.datetime(2025, 7, 31, 21, 26, tzinfo=tzlocal())),\n", - " 'prob_meas0_prep1': (0.0263671875,\n", - " datetime.datetime(2025, 7, 31, 21, 26, tzinfo=tzlocal())),\n", - " 'prob_meas1_prep0': (0.0419921875,\n", - " datetime.datetime(2025, 7, 31, 21, 26, tzinfo=tzlocal())),\n", + " datetime.datetime(2025, 8, 15, 5, 56, 4, tzinfo=tzlocal())),\n", + " 'readout_error': (0.04541015625,\n", + " datetime.datetime(2025, 8, 14, 22, 24, 13, tzinfo=tzlocal())),\n", + " 'prob_meas0_prep1': (0.015625,\n", + " datetime.datetime(2025, 8, 14, 2, 33, 40, tzinfo=tzlocal())),\n", + " 'prob_meas1_prep0': (0.06787109375,\n", + " datetime.datetime(2025, 8, 14, 2, 33, 40, tzinfo=tzlocal())),\n", " 'readout_length': (1.3e-06,\n", - " datetime.datetime(2025, 7, 31, 21, 26, tzinfo=tzlocal()))}" + " datetime.datetime(2025, 8, 14, 22, 24, 13, tzinfo=tzlocal()))}" ] }, "execution_count": 7, @@ -374,13 +374,13 @@ "output_type": "stream", "text": [ "Qubit 126 Properties:\n", - " T1: 0.0002746921073949362 seconds\n", - " T2: 1.68752262717473e-05 seconds\n", - " Frequency: 4908227695.33459 Hz\n", + " T1: 0.00025930605264857105 seconds\n", + " T2: 1.886433514889539e-05 seconds\n", + " Frequency: 4908229044.455285 Hz\n", " Anharmonicity: -308575726.39301103 Hz\n", - " Readout Error: 0.072021484375\n", - " P(0 | 1): 0.046875\n", - " P(1 | 0): 0.09716796875\n", + " Readout Error: 0.0242919921875\n", + " P(0 | 1): 0.02294921875\n", + " P(1 | 0): 0.025390625\n", " Readout Length: 1.3e-06 seconds\n" ] } @@ -430,7 +430,7 @@ { "data": { "text/plain": [ - "InstructionProperties(duration=6.6e-07, error=0.005820281053298959)" + "InstructionProperties(duration=6.6e-07, error=0.004848429058962961)" ] }, "execution_count": 9, @@ -459,7 +459,7 @@ { "data": { "text/plain": [ - "InstructionProperties(duration=1.3e-06, error=0.0341796875)" + "InstructionProperties(duration=1.3e-06, error=0.04541015625)" ] }, "execution_count": 10, diff --git a/docs/guides/get-started-with-primitives.ipynb b/docs/guides/get-started-with-primitives.ipynb index e35772efe2e..1acc55d9a12 100644 --- a/docs/guides/get-started-with-primitives.ipynb +++ b/docs/guides/get-started-with-primitives.ipynb @@ -80,7 +80,7 @@ "name": "stdout", "output_type": "stream", "text": [ - "ibm_brisbane\n" + "ibm_torino\n" ] } ], @@ -167,7 +167,7 @@ "name": "stdout", "output_type": "stream", "text": [ - ">>> Circuit ops (ISA): OrderedDict([('rz', 2734), ('sx', 1185), ('ecr', 576), ('x', 284)])\n" + ">>> Circuit ops (ISA): OrderedDict([('rz', 3826), ('sx', 1601), ('cz', 968)])\n" ] } ], @@ -222,7 +222,7 @@ "name": "stdout", "output_type": "stream", "text": [ - ">>> Job ID: d266hogut9ds739ge2hg\n", + ">>> Job ID: d2fdqan36hfc738s2mrg\n", ">>> Job Status: QUEUED\n" ] } @@ -244,7 +244,7 @@ "output_type": "stream", "text": [ ">>> PrimitiveResult([PubResult(data=DataBin(evs=np.ndarray(), stds=np.ndarray(), ensemble_standard_error=np.ndarray()), metadata={'shots': 4096, 'target_precision': 0.015625, 'circuit_metadata': {}, 'resilience': {}, 'num_randomizations': 32})], metadata={'dynamical_decoupling': {'enable': False, 'sequence_type': 'XX', 'extra_slack_distribution': 'middle', 'scheduling_method': 'alap'}, 'twirling': {'enable_gates': False, 'enable_measure': True, 'num_randomizations': 'auto', 'shots_per_randomization': 'auto', 'interleave_randomizations': True, 'strategy': 'active-accum'}, 'resilience': {'measure_mitigation': True, 'zne_mitigation': False, 'pec_mitigation': False}, 'version': 2})\n", - " > Expectation value: 2.860418623286167\n", + " > Expectation value: 25.839241845643762\n", " > Metadata: {'shots': 4096, 'target_precision': 0.015625, 'circuit_metadata': {}, 'resilience': {}, 'num_randomizations': 32}\n" ] } @@ -330,7 +330,7 @@ "name": "stdout", "output_type": "stream", "text": [ - ">>> Circuit ops (ISA): OrderedDict([('rz', 3647), ('sx', 2061), ('ecr', 579), ('measure', 127), ('x', 14), ('barrier', 1)])\n" + ">>> Circuit ops (ISA): OrderedDict([('rz', 3036), ('sx', 2723), ('cz', 906), ('measure', 127), ('barrier', 1)])\n" ] } ], @@ -384,7 +384,7 @@ "name": "stdout", "output_type": "stream", "text": [ - ">>> Job ID: d266i68ut9ds739ge340\n", + ">>> Job ID: d2fee7emsp5c73b0uang\n", ">>> Job Status: QUEUED\n" ] } @@ -405,7 +405,7 @@ "name": "stdout", "output_type": "stream", "text": [ - "First ten results for the 'meas' output register: ['1100110010110111011000010111100111110111101011010001001110011100010011010111101110000100111110111111101101111111011111001101011', '1000101001000010011101110111000100110111100101110101111011111110001110011101101000000011000001011100011101100111110100111001110', '1100111110111100111111000110010100110010110011111011011101011001010111011110011011101001001001111110011110110110101110101101011', '1100100000001111010011010101111001111110111100001001000001100000100111011011011010101011110000011110100111110111101111011011101', '0110101011001111001101111010010111101111011100101001011101101111011010011110101101011111101000110010110000110001100101010011100', '1111001111001100110011100010001101101101011010101101000000111010011011111011011101111111000011010101011011000111011101110101101', '1001111100000100010100110100101010010100001000110110101111110100110010111111001000101001101010110001110001111111111100111100101', '0101001101110010010100010010101000001101101111101111001110101100101011111000110000001001010000011110100111110000001101101100100', '1001000000100000100010100111011010101000010101011011111001010101001001010100100001100001100001011110100110110011111101010001100', '0110101100010000111010011110111001011111110111100111101101010011110001001011000101111111011101110000110111110010000101111111111']\n" + "First ten results for the 'meas' output register: ['0110000010100000111001100110110010010011001000011001111100001100000111001001011000000011100100110000110111111101011011111100000', '0001110001010011110001011011110100101010101100000001110000100001010001100000101000001100101110011100000000111111010000000010000', '1010001001011111111000010101110101110000101000001000000100110111001111110111000110000000000011001010111000110000011100100000100', '1110001111001101100101100111001101000100110100000111110001010001000000111010101001101100000111010011101110101111111010100110101', '1100011001000100000000011100000011001010011101001101001111100110100011000011101011100000000100100001010011101011010001100100000', '1100011110100011010011000100001111000111011111000010111100010111000000110100010001110001000000110100011010011111011010000000000', '1100000101000011000101111000010000000010001100110000011000111101000101001100100010110011000010011001001011110011001100000001100', '1001101001000001000000011001000110010011001111010010011010010000010100001001000000001111011011101101101010111010111100000000011', '0101011010010011010100001110000101000111101010001001011111100001000101100000101101100100000011011000000101010000110010001010110', '1100000011010011000001111001000011000010111011011111111110111111011011110011011000001010000001001001010001101000111100101110000']\n" ] } ], diff --git a/docs/guides/measure-qubits.ipynb b/docs/guides/measure-qubits.ipynb index 5da0549188f..881fe153499 100644 --- a/docs/guides/measure-qubits.ipynb +++ b/docs/guides/measure-qubits.ipynb @@ -63,7 +63,7 @@ { "data": { "text/plain": [ - "" + "" ] }, "execution_count": 1, @@ -92,7 +92,7 @@ { "data": { "text/plain": [ - "" + "" ] }, "execution_count": 2, @@ -127,7 +127,7 @@ { "data": { "text/plain": [ - "" + "" ] }, "execution_count": 3, diff --git a/docs/guides/noise-learning.ipynb b/docs/guides/noise-learning.ipynb index 0a95ef07437..85bbf627657 100644 --- a/docs/guides/noise-learning.ipynb +++ b/docs/guides/noise-learning.ipynb @@ -139,64 +139,59 @@ " 'IIIIIIIIIIIIIIIIIIIIIIYZIII', 'IIIIIIIIIIIIIIIIIIIIIIZIIII',\n", " 'IIIIIIIIIIIIIIIIIIIIIIZXIII', 'IIIIIIIIIIIIIIIIIIIIIIZYIII',\n", " 'IIIIIIIIIIIIIIIIIIIIIIZZIII', 'IIIIIIIIIIIIIIIIIIIIIXIIIII',\n", - " 'IIIIIIIIIIIIIIIIIIIIIXXIIII', 'IIIIIIIIIIIIIIIIIIIIIXYIIII',\n", - " 'IIIIIIIIIIIIIIIIIIIIIXZIIII', 'IIIIIIIIIIIIIIIIIIIIIYIIIII',\n", - " 'IIIIIIIIIIIIIIIIIIIIIYXIIII', 'IIIIIIIIIIIIIIIIIIIIIYYIIII',\n", - " 'IIIIIIIIIIIIIIIIIIIIIYZIIII', 'IIIIIIIIIIIIIIIIIIIIIZIIIII',\n", - " 'IIIIIIIIIIIIIIIIIIIIIZXIIII', 'IIIIIIIIIIIIIIIIIIIIIZYIIII',\n", - " 'IIIIIIIIIIIIIIIIIIIIIZZIIII', 'IIIIIIIIIIIIIIIIIIIIXIIIIII',\n", - " 'IIIIIIIIIIIIIIIIIIIIXXIIIII', 'IIIIIIIIIIIIIIIIIIIIXYIIIII',\n", - " 'IIIIIIIIIIIIIIIIIIIIXZIIIII', 'IIIIIIIIIIIIIIIIIIIIYIIIIII',\n", - " 'IIIIIIIIIIIIIIIIIIIIYXIIIII', 'IIIIIIIIIIIIIIIIIIIIYYIIIII',\n", - " 'IIIIIIIIIIIIIIIIIIIIYZIIIII', 'IIIIIIIIIIIIIIIIIIIIZIIIIII',\n", - " 'IIIIIIIIIIIIIIIIIIIIZXIIIII', 'IIIIIIIIIIIIIIIIIIIIZYIIIII', ...]\n", + " 'IIIIIIIIIIIIIIIIIIIIIXIIIIX', 'IIIIIIIIIIIIIIIIIIIIIXIIIIY',\n", + " 'IIIIIIIIIIIIIIIIIIIIIXIIIIZ', 'IIIIIIIIIIIIIIIIIIIIIYIIIII',\n", + " 'IIIIIIIIIIIIIIIIIIIIIYIIIIX', 'IIIIIIIIIIIIIIIIIIIIIYIIIIY',\n", + " 'IIIIIIIIIIIIIIIIIIIIIYIIIIZ', 'IIIIIIIIIIIIIIIIIIIIIZIIIII',\n", + " 'IIIIIIIIIIIIIIIIIIIIIZIIIIX', 'IIIIIIIIIIIIIIIIIIIIIZIIIIY',\n", + " 'IIIIIIIIIIIIIIIIIIIIIZIIIIZ', 'IIIIIIIIIIIIIIIIIIIIXIIIIII',\n", + " 'IIIIIIIIIIIIIIIIIIIIXIXIIII', 'IIIIIIIIIIIIIIIIIIIIXIYIIII',\n", + " 'IIIIIIIIIIIIIIIIIIIIXIZIIII', 'IIIIIIIIIIIIIIIIIIIIYIIIIII',\n", + " 'IIIIIIIIIIIIIIIIIIIIYIXIIII', 'IIIIIIIIIIIIIIIIIIIIYIYIIII',\n", + " 'IIIIIIIIIIIIIIIIIIIIYIZIIII', 'IIIIIIIIIIIIIIIIIIIIZIIIIII',\n", + " 'IIIIIIIIIIIIIIIIIIIIZIXIIII', 'IIIIIIIIIIIIIIIIIIIIZIYIIII', ...]\n", "\n", "Along with the error rates: \n", - "[4.000e-04 6.300e-04 3.200e-04 1.570e-03 6.300e-04 4.000e-04 0.000e+00\n", - " 5.000e-04 5.000e-05 1.400e-04 3.400e-04 2.400e-04 2.500e-04 0.000e+00\n", - " 6.000e-04 2.900e-04 6.000e-05 0.000e+00 9.000e-05 3.400e-04 6.000e-05\n", - " 9.000e-05 0.000e+00 1.500e-03 0.000e+00 1.000e-05 1.000e-05 1.090e-03\n", - " 4.900e-04 4.400e-04 1.200e-04 4.300e-04 1.600e-04 1.600e-04 1.170e-03\n", - " 5.500e-04 0.000e+00 0.000e+00 1.060e-03 8.000e-04 7.000e-05 1.000e-05\n", - " 5.000e-05 9.500e-04 7.000e-05 5.000e-05 1.000e-05 9.500e-04 5.800e-04\n", - " 5.600e-04 5.600e-04 3.240e-03 1.090e-03 9.300e-04 0.000e+00 1.560e-03\n", - " 9.000e-05 7.000e-05 1.510e-03 1.370e-03 0.000e+00 0.000e+00 1.700e-03\n", - " 6.900e-04 0.000e+00 0.000e+00 1.000e-04 5.300e-04 0.000e+00 1.000e-04\n", - " 0.000e+00 1.410e-03 0.000e+00 4.000e-05 4.000e-05 5.500e-04 6.200e-04\n", - " 7.900e-04 9.000e-05 5.800e-04 3.800e-04 0.000e+00 1.530e-03 1.050e-03\n", - " 3.000e-05 0.000e+00 1.060e-03 1.000e-03 1.300e-04 1.400e-04 1.900e-04\n", - " 6.900e-04 1.300e-04 1.900e-04 1.400e-04 3.170e-03 1.500e-04 1.600e-04\n", - " 1.600e-04 6.200e-04 0.000e+00 0.000e+00 8.000e-05 6.400e-04 0.000e+00\n", - " 0.000e+00 8.000e-05 1.090e-03 0.000e+00 0.000e+00 6.130e-03 1.230e-03\n", - " 1.150e-03 1.460e-03 3.500e-04 3.600e-04 2.200e-04 0.000e+00 4.900e-04\n", - " 3.700e-04 6.000e-05 1.000e-04 4.800e-04 6.200e-04 7.900e-04 8.100e-04\n", - " 1.450e-03 7.900e-04 6.200e-04 0.000e+00 1.200e-04 0.000e+00 0.000e+00\n", - " 8.300e-04 8.000e-05 0.000e+00 0.000e+00 8.600e-04 6.200e-04 1.000e-05\n", - " 0.000e+00 0.000e+00 0.000e+00 0.000e+00 3.000e-04 4.200e-04 0.000e+00\n", - " 0.000e+00 4.400e-04 3.200e-04 5.400e-04 5.900e-04 2.700e-04 5.000e-05\n", - " 5.500e-04 5.800e-04 1.100e-04 6.000e-05 5.100e-04 9.000e-05 7.200e-04\n", - " 6.900e-04 1.060e-03 7.300e-04 7.200e-04 9.000e-05 0.000e+00 0.000e+00\n", - " 0.000e+00 4.400e-04 5.000e-05 1.100e-04 4.600e-04 4.000e-05 0.000e+00\n", - " 6.000e-05 3.600e-04 8.000e-05 0.000e+00 5.400e-04 0.000e+00 4.000e-05\n", - " 6.000e-05 8.200e-04 8.100e-04 2.120e-03 8.800e-04 0.000e+00 0.000e+00\n", - " 0.000e+00 3.800e-04 1.400e-04 0.000e+00 2.300e-04 4.500e-04 0.000e+00\n", - " 1.400e-04 2.300e-04 3.300e-04 0.000e+00 1.200e-04 0.000e+00 5.100e-04\n", - " 0.000e+00 0.000e+00 3.900e-04 0.000e+00 0.000e+00 1.200e-04 4.500e-04\n", - " 7.000e-05 7.000e-05 2.880e-03 0.000e+00 0.000e+00 0.000e+00 2.600e-04\n", - " 8.200e-04 7.500e-04 1.540e-03 9.500e-04 9.600e-04 2.200e-04 1.520e-03\n", - " 4.000e-05 3.900e-04 2.370e-03 1.350e-03 1.600e-04 0.000e+00 2.540e-03\n", - " 7.100e-04 2.000e-05 2.200e-04 2.200e-04 0.000e+00 8.000e-05 6.000e-04\n", - " 1.900e-04 9.000e-05 1.000e-04 2.000e-04 6.100e-04 6.900e-04 9.700e-04\n", - " 0.000e+00 1.000e-05 6.700e-04 9.900e-04 1.200e-04 0.000e+00 7.800e-04\n", - " 1.400e-04 9.900e-04 8.700e-04 7.500e-04 0.000e+00 0.000e+00 0.000e+00\n", - " 5.400e-04 0.000e+00 3.000e-04 9.000e-05 3.100e-04 3.000e-04 0.000e+00\n", - " 9.000e-05 4.000e-04 6.700e-04 0.000e+00 1.400e-04 6.300e-04 4.400e-04\n", - " 0.000e+00 0.000e+00 1.530e-03 5.000e-05 7.000e-04 9.300e-04 1.120e-03\n", - " 0.000e+00 0.000e+00 0.000e+00 5.400e-04 3.000e-05 1.000e-05 5.000e-05\n", - " 1.300e-03 1.000e-05 3.000e-05 5.000e-05 5.600e-04 7.200e-04 0.000e+00\n", - " 0.000e+00 5.300e-04 7.500e-04 1.900e-04 0.000e+00 1.160e-03 1.500e-04\n", - " 1.380e-03 6.200e-04 4.060e-03 1.900e-04 1.900e-04 0.000e+00 5.320e-03\n", - " 0.000e+00 0.000e+00 1.400e-04 1.445e-02 0.000e+00 0.000e+00 0.000e+00]\n", + "[6.40e-04 6.10e-04 2.00e-04 2.50e-04 0.00e+00 1.50e-04 7.00e-05 3.80e-04\n", + " 8.00e-05 2.00e-05 0.00e+00 2.90e-04 5.00e-05 4.00e-05 1.90e-04 1.60e-04\n", + " 1.60e-04 3.00e-05 6.10e-04 3.70e-04 3.00e-05 1.60e-04 5.70e-04 3.70e-04\n", + " 4.70e-04 4.80e-04 2.20e-04 1.09e-03 2.00e-04 0.00e+00 2.00e-05 8.60e-04\n", + " 1.60e-04 1.80e-04 4.00e-05 4.50e-04 1.00e-04 2.00e-05 4.00e-05 1.61e-03\n", + " 0.00e+00 0.00e+00 1.63e-03 1.16e-03 0.00e+00 0.00e+00 1.45e-03 4.20e-04\n", + " 1.31e-03 1.24e-03 5.00e-05 4.20e-04 8.00e-05 0.00e+00 6.20e-04 4.50e-04\n", + " 0.00e+00 8.00e-05 6.10e-04 3.20e-04 7.70e-04 8.30e-04 1.20e-04 4.00e-05\n", + " 0.00e+00 0.00e+00 2.30e-04 2.00e-05 0.00e+00 2.50e-04 0.00e+00 8.40e-04\n", + " 2.00e-05 3.00e-05 0.00e+00 7.70e-04 1.08e-03 4.10e-04 3.60e-04 2.00e-04\n", + " 1.30e-04 0.00e+00 5.00e-04 0.00e+00 0.00e+00 2.00e-04 1.19e-03 2.00e-05\n", + " 4.00e-05 1.00e-04 5.30e-04 3.00e-05 0.00e+00 1.40e-04 1.40e-04 0.00e+00\n", + " 7.00e-04 5.30e-04 1.00e-04 1.20e-04 0.00e+00 0.00e+00 1.40e-04 7.50e-04\n", + " 5.10e-04 8.00e-05 4.00e-05 0.00e+00 6.90e-04 6.90e-04 3.80e-04 2.90e-04\n", + " 4.60e-04 4.10e-04 2.50e-04 1.20e-04 6.00e-05 4.30e-04 7.00e-05 0.00e+00\n", + " 1.10e-04 2.40e-04 6.00e-05 1.20e-04 3.60e-04 0.00e+00 8.00e-05 3.00e-05\n", + " 4.70e-04 2.70e-04 2.70e-04 2.00e-04 1.20e-04 1.00e-05 0.00e+00 3.80e-04\n", + " 0.00e+00 1.50e-04 5.40e-04 4.40e-04 1.50e-04 0.00e+00 6.30e-04 6.00e-04\n", + " 9.90e-04 1.25e-03 2.70e-04 5.80e-04 8.60e-04 4.80e-04 1.00e-04 0.00e+00\n", + " 2.30e-04 0.00e+00 2.00e-04 0.00e+00 0.00e+00 8.00e-05 2.00e-04 2.40e-04\n", + " 0.00e+00 0.00e+00 3.40e-04 3.00e-05 1.10e-04 7.00e-05 0.00e+00 1.20e-04\n", + " 5.60e-04 5.60e-04 1.30e-04 0.00e+00 0.00e+00 1.20e-04 0.00e+00 6.90e-04\n", + " 1.13e-03 0.00e+00 7.00e-05 0.00e+00 3.30e-04 2.80e-04 2.80e-04 1.54e-03\n", + " 1.00e-04 0.00e+00 1.80e-03 1.18e-03 0.00e+00 1.00e-04 1.60e-03 8.40e-04\n", + " 8.20e-04 1.09e-03 2.40e-04 4.20e-04 3.80e-04 1.00e-04 3.40e-04 0.00e+00\n", + " 8.00e-05 1.30e-04 3.00e-04 1.00e-04 0.00e+00 0.00e+00 6.00e-04 0.00e+00\n", + " 0.00e+00 0.00e+00 5.30e-04 6.00e-05 0.00e+00 0.00e+00 9.00e-05 1.40e-04\n", + " 5.90e-04 1.20e-04 1.80e-04 1.90e-04 1.00e-05 1.40e-04 9.00e-05 5.00e-04\n", + " 0.00e+00 3.00e-05 2.40e-04 1.00e-05 5.50e-04 3.90e-04 1.40e-04 1.90e-04\n", + " 5.00e-05 1.40e-04 4.10e-04 2.70e-04 1.40e-04 5.00e-05 3.30e-04 6.00e-05\n", + " 5.10e-04 4.60e-04 3.40e-04 5.00e-04 3.90e-04 1.03e-03 3.60e-04 0.00e+00\n", + " 1.10e-04 2.50e-04 4.70e-04 1.90e-04 7.00e-05 0.00e+00 1.30e-04 8.00e-05\n", + " 1.40e-04 1.00e-04 7.10e-04 3.00e-05 0.00e+00 0.00e+00 7.00e-05 4.00e-05\n", + " 7.30e-04 5.30e-04 0.00e+00 6.00e-05 2.10e-04 4.00e-05 7.00e-05 8.00e-04\n", + " 1.90e-04 1.90e-04 0.00e+00 1.80e-04 7.30e-04 7.40e-04 2.80e-04 1.30e-04\n", + " 1.70e-04 9.00e-05 2.70e-04 1.00e-05 9.00e-05 1.70e-04 2.50e-04 5.30e-04\n", + " 7.70e-04 7.20e-04 3.40e-04 3.30e-04 5.40e-04 4.10e-04 3.10e-04 8.00e-05\n", + " 6.00e-05 1.20e-04 3.00e-05 1.00e-04 5.60e-04 3.80e-04 0.00e+00 1.20e-04\n", + " 1.30e-04 1.00e-04 3.00e-05 6.20e-04 4.00e-04 6.00e-05 6.00e-05 4.00e-05\n", + " 3.30e-04 5.40e-04 1.50e-04]\n", "\n" ] } diff --git a/docs/guides/primitive-input-output.ipynb b/docs/guides/primitive-input-output.ipynb index 2f2f16c8dc4..5ccd12435c2 100644 --- a/docs/guides/primitive-input-output.ipynb +++ b/docs/guides/primitive-input-output.ipynb @@ -379,57 +379,81 @@ " number of parameters in the circuit -- combined with our array of observables having shape (3, 1). \n", "\n", "The expectation values measured from this PUB are: \n", - "[[ 0.01957176 0.17521178 0.32589652 0.44841299 0.54310687 0.62931398\n", - " 0.66235915 0.6605195 0.64937928 0.60825875 0.54338094 0.48319412\n", - " 0.39047953 0.33556903 0.30363857 0.24657931 0.24682272 0.25224165\n", - " 0.29290228 0.32563611 0.37714654 0.41251442 0.46010363 0.47010528\n", - " 0.5107241 0.49657202 0.47367932 0.44271572 0.37811191 0.33699361\n", - " 0.28143577 0.25396932 0.21922934 0.21609728 0.20074389 0.2357071\n", - " 0.28167167 0.31530664 0.43171952 0.46996185 0.56808939 0.6121583\n", - " 0.64818094 0.65087621 0.62182842 0.5442014 0.46378652 0.33015819\n", - " 0.18806027 0.03040587 -0.1264795 -0.2761481 -0.4061098 -0.52526203\n", - " -0.56941234 -0.65779435 -0.65159446 -0.65329303 -0.59478533 -0.57326941\n", - " -0.48890422 -0.42836275 -0.33854354 -0.29498381 -0.2656695 -0.24913572\n", - " -0.22697919 -0.27554872 -0.31299966 -0.36616234 -0.40074254 -0.4539896\n", - " -0.49741942 -0.52696072 -0.53173682 -0.49492125 -0.48253865 -0.42112811\n", - " -0.36606902 -0.31359321 -0.25670566 -0.2086513 -0.1927626 -0.18426163\n", - " -0.2004221 -0.24085724 -0.27704041 -0.33058684 -0.43136561 -0.51186783\n", - " -0.57545921 -0.61389641 -0.62990605 -0.63924918 -0.599589 -0.54187122\n", - " -0.42283621 -0.3147951 -0.12987733 0.02046919]\n", - " [ 0.02667655 0.08536495 0.16124491 0.21222675 0.2780289 0.35450167\n", - " 0.41733976 0.46298629 0.53827343 0.57799185 0.63253057 0.71433864\n", - " 0.71374583 0.79851797 0.81867358 0.84060763 0.89692479 0.93486476\n", - " 0.96035569 0.97161912 0.98466099 0.99414598 1.00422379 1.02260096\n", - " 1.03445721 1.02675065 1.02378659 1.0095591 0.98821786 0.97102631\n", - " 0.93308633 0.93723601 0.89811041 0.85661356 0.8145239 0.77658392\n", - " 0.74872175 0.67343461 0.65150056 0.57621341 0.5513153 0.48551315\n", - " 0.42801037 0.37702853 0.31893294 0.22763987 0.17250834 0.12152649\n", - " 0.07528714 -0.01778436 -0.06758059 -0.13871804 -0.17369396 -0.27269359\n", - " -0.29107077 -0.41200445 -0.41911819 -0.51574657 -0.54183031 -0.634309\n", - " -0.67047054 -0.72500926 -0.75405706 -0.79377547 -0.83705076 -0.87499074\n", - " -0.88921823 -0.95383475 -0.97399037 -0.96865506 -0.97873286 -0.98169692\n", - " -1.01489441 -1.01489441 -1.03149315 -1.00718785 -1.01548722 -0.98643942\n", - " -0.97280474 -0.956206 -0.91885884 -0.89158948 -0.89396073 -0.83467951\n", - " -0.81333827 -0.75761393 -0.71018896 -0.63786588 -0.60526121 -0.59281215\n", - " -0.51456095 -0.43749537 -0.37465728 -0.33968136 -0.28692108 -0.25550204\n", - " -0.19088551 -0.11085587 -0.02667655 0.03497592]\n", - " [ 0.01246697 0.26505861 0.49054814 0.68459923 0.80818484 0.9041263\n", - " 0.90737855 0.85805271 0.76048513 0.63852565 0.45423132 0.2520496\n", - " 0.06721323 -0.1273799 -0.21139644 -0.34744901 -0.40327935 -0.43038146\n", - " -0.37455112 -0.32034691 -0.23036791 -0.16911715 -0.08401653 -0.08239041\n", - " -0.01300901 -0.03360661 -0.07642794 -0.12412765 -0.23199404 -0.29703909\n", - " -0.37021478 -0.42929738 -0.45965174 -0.424419 -0.41303611 -0.30516973\n", - " -0.18537841 -0.04282133 0.21193848 0.36371028 0.58486347 0.73880344\n", - " 0.86835151 0.9247239 0.9247239 0.86076292 0.75506471 0.53878989\n", - " 0.30083339 0.07859611 -0.18537841 -0.41357816 -0.63852565 -0.77783048\n", - " -0.84775391 -0.90358425 -0.88407074 -0.79083949 -0.64774036 -0.51222983\n", - " -0.3073379 -0.13171624 0.07696998 0.20380785 0.30571177 0.37671929\n", - " 0.43525984 0.40273731 0.34799106 0.23633037 0.17724778 0.07371773\n", - " 0.02005556 -0.03902703 -0.03198049 0.01734535 0.05040992 0.14418321\n", - " 0.24066671 0.32901958 0.40544752 0.47428688 0.50843553 0.46615624\n", - " 0.41249407 0.27589945 0.15610814 -0.02330781 -0.25747002 -0.4309235\n", - " -0.63635748 -0.79029745 -0.88515482 -0.93881699 -0.91225693 -0.8282404\n", - " -0.65478691 -0.51873433 -0.23307812 0.00596246]]\n" + "[[-1.87080242e-02 1.28938109e-01 2.76913871e-01 3.71506776e-01\n", + " 4.94545234e-01 5.55160936e-01 5.67004116e-01 5.63500495e-01\n", + " 5.43676664e-01 4.93745416e-01 4.26869403e-01 3.89507284e-01\n", + " 3.41497248e-01 2.65503714e-01 2.41544368e-01 2.03640737e-01\n", + " 2.37575981e-01 2.46947344e-01 2.91803491e-01 3.44822017e-01\n", + " 3.80745083e-01 4.62749714e-01 5.16981771e-01 5.29508858e-01\n", + " 5.55394922e-01 5.84534434e-01 5.68936503e-01 5.35176605e-01\n", + " 4.87578365e-01 4.22499354e-01 3.48276337e-01 3.20286458e-01\n", + " 2.69629260e-01 2.45789495e-01 2.09408921e-01 2.45289067e-01\n", + " 3.14118283e-01 3.13761211e-01 4.00654669e-01 4.25265056e-01\n", + " 5.08004730e-01 5.73431638e-01 5.68022280e-01 5.68119046e-01\n", + " 5.33539145e-01 4.88920406e-01 4.15843352e-01 3.06978369e-01\n", + " 1.70782765e-01 2.22134798e-02 -8.19352272e-02 -2.19454851e-01\n", + " -3.44936805e-01 -4.37141897e-01 -5.07601945e-01 -5.51897437e-01\n", + " -5.60319163e-01 -5.51251902e-01 -5.11778627e-01 -4.86028659e-01\n", + " -3.83156506e-01 -3.38157962e-01 -2.64593326e-01 -2.66874322e-01\n", + " -2.32135591e-01 -2.24253540e-01 -2.33634955e-01 -2.81005838e-01\n", + " -3.31041192e-01 -3.53238238e-01 -4.45131970e-01 -5.20022460e-01\n", + " -5.33870855e-01 -5.73898404e-01 -5.87634475e-01 -5.71381834e-01\n", + " -5.42456916e-01 -5.24863822e-01 -4.62713177e-01 -4.00752476e-01\n", + " -3.53043748e-01 -2.85691958e-01 -2.57268343e-01 -2.77402658e-01\n", + " -2.33997451e-01 -2.47328984e-01 -3.14292670e-01 -3.48335607e-01\n", + " -4.13767062e-01 -4.77637088e-01 -5.48924399e-01 -5.47454231e-01\n", + " -6.00121190e-01 -5.81572954e-01 -5.20116268e-01 -4.52253122e-01\n", + " -3.82670595e-01 -2.60595496e-01 -1.40143012e-01 -6.05672780e-03]\n", + " [-3.51734245e-02 5.94040059e-02 1.30532487e-01 1.78993649e-01\n", + " 2.97801661e-01 3.73619932e-01 3.93942355e-01 4.60381045e-01\n", + " 5.02589155e-01 5.18221788e-01 5.66682951e-01 6.57352223e-01\n", + " 6.92525647e-01 7.04250122e-01 7.66780655e-01 7.68343918e-01\n", + " 8.67611138e-01 8.90278456e-01 9.41866146e-01 9.77821202e-01\n", + " 9.58280410e-01 1.02081094e+00 1.03957010e+00 1.00127015e+00\n", + " 1.03566194e+00 1.06927211e+00 1.04816805e+00 1.02550073e+00\n", + " 9.98143625e-01 9.91890572e-01 9.34831461e-01 9.41084514e-01\n", + " 9.02002931e-01 8.54323400e-01 7.71470445e-01 7.45676600e-01\n", + " 8.08207132e-01 6.84709331e-01 6.88617489e-01 5.83097215e-01\n", + " 5.89350269e-01 5.90131900e-01 4.96336102e-01 4.23644358e-01\n", + " 3.37664875e-01 2.79824133e-01 2.11040547e-01 1.50854910e-01\n", + " 5.00244260e-02 -5.47142159e-03 -4.22081094e-02 -1.26624328e-01\n", + " -2.03224231e-01 -2.40742550e-01 -3.00928188e-01 -3.52515877e-01\n", + " -4.00195408e-01 -4.72887152e-01 -5.01025892e-01 -5.88568637e-01\n", + " -5.84660479e-01 -6.80801172e-01 -6.83927699e-01 -7.45676600e-01\n", + " -8.15241817e-01 -8.30874450e-01 -8.75427455e-01 -9.30923302e-01\n", + " -9.45774304e-01 -9.48119199e-01 -1.02706400e+00 -1.03331705e+00\n", + " -1.05989253e+00 -1.06145579e+00 -1.06145579e+00 -1.03175379e+00\n", + " -1.02940889e+00 -1.02393747e+00 -9.84855887e-01 -9.88764045e-01\n", + " -9.60625305e-01 -8.88715193e-01 -8.87933561e-01 -9.11382511e-01\n", + " -8.36345872e-01 -7.62090865e-01 -7.51929653e-01 -6.93307279e-01\n", + " -6.38593063e-01 -6.06546165e-01 -5.93258427e-01 -4.65852467e-01\n", + " -4.55691255e-01 -3.97850513e-01 -3.22032242e-01 -2.26673180e-01\n", + " -2.02442599e-01 -1.32095750e-01 -6.33121641e-02 7.81631656e-04]\n", + " [-2.24262387e-03 1.98472212e-01 4.23295255e-01 5.64019903e-01\n", + " 6.91288808e-01 7.36701941e-01 7.40065877e-01 6.66619945e-01\n", + " 5.84764174e-01 4.69269045e-01 2.87055855e-01 1.21662345e-01\n", + " -9.53115145e-03 -1.73242694e-01 -2.83691920e-01 -3.61062443e-01\n", + " -3.92459177e-01 -3.96383769e-01 -3.58259163e-01 -2.88177167e-01\n", + " -1.96790245e-01 -9.53115145e-02 -5.60655967e-03 5.77475647e-02\n", + " 7.51278996e-02 9.97967622e-02 8.97049548e-02 4.48524774e-02\n", + " -2.29868947e-02 -1.46891863e-01 -2.38278786e-01 -3.00511599e-01\n", + " -3.62744411e-01 -3.62744411e-01 -3.52652604e-01 -2.55098465e-01\n", + " -1.79970566e-01 -5.71869087e-02 1.12691849e-01 2.67432896e-01\n", + " 4.26659191e-01 5.56731376e-01 6.39708459e-01 7.12593735e-01\n", + " 7.29413414e-01 6.98016680e-01 6.20646156e-01 4.63101829e-01\n", + " 2.91541103e-01 4.98983811e-02 -1.21662345e-01 -3.12285374e-01\n", + " -4.86649380e-01 -6.33541243e-01 -7.14275703e-01 -7.51278996e-01\n", + " -7.20442918e-01 -6.29616651e-01 -5.22531362e-01 -3.83488682e-01\n", + " -1.81652533e-01 4.48524774e-03 1.54741047e-01 2.11927956e-01\n", + " 3.50970636e-01 3.82367370e-01 4.08157544e-01 3.68911627e-01\n", + " 2.83691920e-01 2.41642722e-01 1.36800056e-01 -6.72787161e-03\n", + " -7.84918354e-03 -8.63410190e-02 -1.13813161e-01 -1.11009882e-01\n", + " -5.55049408e-02 -2.57901745e-02 5.94295326e-02 1.87259093e-01\n", + " 2.54537809e-01 3.17331278e-01 3.73396874e-01 3.56577195e-01\n", + " 3.68350971e-01 2.67432896e-01 1.23344313e-01 -3.36393580e-03\n", + " -1.88941061e-01 -3.48728012e-01 -5.04590371e-01 -6.29055996e-01\n", + " -7.44551125e-01 -7.65295396e-01 -7.18200294e-01 -6.77833065e-01\n", + " -5.62898591e-01 -3.89095241e-01 -2.16973859e-01 -1.28950873e-02]]\n" ] } ], @@ -503,13 +527,13 @@ "The shape of register `meas` is (4096, 2).\n", "\n", "The bytes in register `alpha`, shot by shot:\n", - "[[ 3 245]\n", - " [ 3 245]\n", - " [ 3 251]\n", + "[[ 0 3]\n", + " [ 3 255]\n", + " [ 0 0]\n", " ...\n", - " [ 0 7]\n", - " [ 0 4]\n", - " [ 3 245]]\n", + " [ 0 15]\n", + " [ 0 0]\n", + " [ 0 8]]\n", "\n" ] } @@ -561,7 +585,7 @@ "name": "stdout", "output_type": "stream", "text": [ - "Counts: {'1111110101': 161, '1111111011': 158, '0001011011': 2, '0000000111': 62, '0000100010': 113, '1101111101': 14, '1111111010': 95, '1111110001': 146, '0000100110': 20, '0000100011': 78, '1111111111': 239, '1111111000': 83, '1111111110': 102, '1000100111': 3, '1111110011': 27, '1101111111': 21, '0000101110': 50, '1101111010': 9, '1000100000': 2, '0011100010': 1, '1111011111': 3, '0000101101': 27, '0000100001': 85, '0000000000': 158, '0000001111': 43, '0000000010': 165, '1111110110': 52, '0010000110': 1, '0000000101': 81, '0000000001': 104, '1101110101': 8, '0001100010': 4, '0000001000': 37, '1111011000': 4, '1111111001': 49, '0111111111': 7, '1111111101': 206, '1000000011': 4, '1011111111': 5, '1101111110': 9, '0000001001': 30, '0000000100': 92, '1111011011': 8, '0000100000': 100, '0000100100': 55, '0111110001': 3, '0000100111': 39, '1000001000': 2, '1111110111': 24, '0000011000': 1, '1111111100': 122, '0011111111': 4, '0000001110': 63, '0000101100': 31, '1111100001': 5, '1111110100': 76, '0001111000': 1, '1111000100': 1, '0000101001': 21, '1110100110': 1, '0001110001': 2, '1111010101': 6, '0000101000': 19, '1000000010': 5, '0000000011': 108, '1111110010': 41, '0000110000': 3, '0000111100': 4, '0000001010': 19, '0010101111': 2, '0001110011': 1, '1000100010': 3, '0000001100': 47, '1111110000': 76, '1111011100': 5, '0010100100': 2, '1101110011': 2, '0000100101': 49, '0000001101': 32, '1111011101': 7, '1101111100': 12, '1101111011': 9, '1111010001': 5, '0001011000': 2, '0001011100': 3, '1000000001': 7, '0000101111': 22, '0001110100': 1, '0000101011': 18, '0000010001': 3, '0011111100': 3, '1111101100': 4, '0000001011': 34, '0000011110': 2, '1111001101': 1, '0000000110': 27, '1101110000': 4, '0111111101': 6, '1110000001': 3, '0101110001': 1, '0111111110': 5, '0000110101': 5, '1100000101': 3, '1110000000': 1, '0100100100': 1, '0000010000': 9, '1000000110': 1, '1000001110': 1, '0000110001': 2, '1111101000': 4, '1000001101': 1, '0011111011': 2, '1000100011': 2, '0000011101': 5, '1000100110': 1, '0010000010': 1, '1100001010': 1, '0001111001': 2, '0111111010': 6, '1100000010': 1, '0001100110': 1, '1111000111': 2, '1101111000': 9, '1011110000': 1, '1110101100': 1, '0111111100': 5, '0111111000': 2, '0000110010': 2, '1000000111': 4, '1110101110': 1, '1000000101': 8, '1101110100': 7, '0000111111': 2, '0001011110': 2, '0010100111': 1, '0000101010': 14, '0001100111': 1, '0000111110': 4, '0111110100': 3, '0100001101': 1, '0001000010': 2, '1101010001': 1, '0000010100': 4, '1110100010': 1, '1101000000': 1, '0100100010': 3, '1000001111': 1, '0010001011': 1, '1110000011': 1, '1110000010': 3, '1101011101': 1, '0000010101': 5, '1001111101': 1, '1101110110': 3, '1100001110': 2, '0001110101': 1, '1111010000': 3, '1101110001': 8, '0111101111': 1, '1011111101': 2, '0001010001': 1, '0011110110': 1, '1101101000': 1, '1011110010': 1, '0001111111': 3, '1111101011': 2, '0011110101': 1, '0010100010': 3, '0010100001': 2, '0010000001': 4, '1101110010': 4, '1100100100': 1, '0001100011': 2, '0001011111': 1, '0001011101': 1, '0000011111': 2, '0000010010': 3, '0001111100': 2, '1111011110': 6, '0001111011': 2, '0000010110': 1, '1110100101': 1, '0011111101': 3, '0010000111': 1, '1111010010': 1, '1011111100': 1, '0100100011': 1, '1100100010': 2, '1000001001': 1, '0000011010': 2, '0001000000': 2, '1110101010': 1, '1000000000': 3, '0001110000': 1, '0001110110': 1, '1111000001': 2, '1001110001': 2, '0111110000': 1, '0001110111': 1, '1111100010': 4, '0010001101': 2, '1111100100': 2, '1110000101': 1, '1100000011': 3, '1110110001': 1, '1000100001': 1, '1100000000': 1, '1111000011': 1, '0111111011': 2, '1011110101': 1, '1011110001': 1, '0000011100': 2, '0011110001': 3, '1100100001': 1, '1111011010': 3, '1111101001': 2, '0111110010': 4, '0100100001': 1, '1110001011': 1, '0000111101': 2, '0001001110': 1, '0000111011': 1, '0111110110': 1, '0111110111': 2, '1111011001': 3, '0001110010': 2, '0011111000': 1, '1101111001': 2, '1111101010': 1, '0001101011': 1, '0001101000': 1, '0010100101': 1, '1111100111': 3, '0000011011': 2, '0010000100': 1, '0010100011': 1, '1111100110': 1, '0010101000': 2, '0001100000': 1, '1110100100': 1, '0000110111': 1, '1111101110': 2, '0001000001': 2, '0001111010': 1, '0000110100': 1, '1110111010': 1, '1110011100': 1, '1111100011': 1, '0001011010': 1, '0010101110': 1, '1000100100': 1, '1001000010': 1, '1100101110': 1, '1110111101': 1, '1111000000': 1, '0101110101': 1, '1100000100': 1, '0001010111': 1, '0100101110': 1, '0001000011': 1, '1100101111': 1, '1111100000': 2, '1100100011': 1, '0100000010': 1, '0111110011': 1, '1000101001': 2, '0001111110': 1, '0110000011': 1, '1011110111': 1, '1110111011': 2, '0001101100': 1, '0010100000': 2, '0001101110': 2, '0010000011': 1, '0100000110': 1, '1111010100': 1, '1110011101': 1, '0100101101': 1, '1101101001': 1, '1110001100': 1, '1110101101': 1, '0101000000': 1, '0001000101': 1, '0000011001': 1, '0100000001': 1, '1001111001': 1, '1111000010': 2, '1110001000': 1, '1100100000': 1, '0010001000': 1, '1000010000': 1, '1101001000': 1, '0111110101': 1, '1111001011': 1, '1110000100': 1, '0100100101': 1, '1101011111': 1, '0100000000': 1, '0111111001': 1, '0001111101': 1, '1101011011': 1, '1011111011': 1}\n" + "Counts: {'0000000011': 58, '1111111111': 795, '0000000000': 1554, '0111111111': 36, '1111011111': 131, '0000000001': 218, '0000001111': 28, '0000000111': 65, '1111111110': 158, '1111111010': 16, '0000000100': 75, '0000010000': 26, '1011000000': 2, '1110111111': 27, '1111111011': 71, '1101111100': 4, '1101111111': 14, '0000111000': 1, '1110101011': 1, '1111001111': 8, '1111011110': 24, '0000001110': 6, '1111111000': 30, '1111011000': 5, '1111110000': 32, '1111111100': 39, '0000001011': 11, '1101011111': 2, '0010000000': 14, '0011111011': 3, '1011111111': 13, '0000000010': 57, '1111111101': 15, '0000011100': 2, '1111101111': 46, '0100010000': 1, '0000111111': 19, '0000111110': 5, '0100000000': 21, '1111101100': 2, '0000011111': 33, '1100000000': 12, '0111111110': 10, '0011101110': 1, '0000000110': 15, '1111000000': 18, '0011111101': 2, '0000000101': 12, '1111110011': 5, '1110111011': 1, '1100000001': 5, '1111011011': 10, '0000011110': 3, '1111110111': 16, '1111000001': 3, '0111111011': 7, '1111101110': 11, '0011101100': 1, '0000111011': 3, '1011101111': 1, '0111011111': 6, '0011111111': 12, '1110000000': 23, '1111101011': 4, '0000011101': 2, '1111010000': 6, '0100000100': 1, '0111111100': 3, '1111110110': 8, '0000010001': 2, '1111110100': 2, '1111110001': 6, '1110111110': 6, '1110011110': 2, '1110101110': 1, '0000001001': 2, '0000001000': 15, '1110011111': 4, '1111110010': 2, '0100000001': 5, '1011111110': 1, '1111100000': 6, '0000011000': 2, '0001111111': 5, '0000100011': 1, '0011111010': 1, '1111100100': 1, '1110000100': 2, '0000010111': 2, '0001100000': 2, '1111011101': 4, '1101111110': 1, '0001011011': 1, '0000111101': 2, '0000001100': 3, '0100000111': 2, '1111101000': 2, '1110000010': 2, '0111110111': 3, '0110000000': 3, '0111011011': 2, '1111001011': 2, '1000010000': 1, '1111011100': 6, '1111010111': 2, '0001011111': 1, '1111100111': 3, '0000100000': 3, '0010111110': 1, '0000010011': 2, '0000010100': 3, '1111100001': 3, '0000001010': 2, '1111111001': 3, '0001101111': 1, '1011111011': 4, '0000011011': 1, '1111110101': 3, '0011111110': 5, '0001111110': 1, '0001111011': 1, '0001000000': 4, '1110111000': 1, '1111010100': 1, '1110000001': 4, '0001011110': 1, '1000000000': 4, '0011000000': 2, '1101000000': 2, '1110101111': 3, '0011011111': 3, '1110000011': 1, '1100011101': 1, '1100001111': 1, '0000010010': 1, '1011011111': 3, '0010011111': 1, '1011111000': 2, '0110111111': 2, '1110001111': 2, '0110101111': 1, '1010111111': 1, '1101011110': 1, '0001001011': 1, '1111010010': 1, '1111010011': 1, '1111010110': 1, '0111010000': 1, '1010010001': 1, '1111001110': 1, '0110000011': 1, '0010010000': 1, '1110111001': 1, '0011101111': 1, '1111000111': 1, '0011101011': 1, '1100100000': 1, '0111000000': 1, '0000110011': 1, '0000111100': 1, '1011110001': 1, '0001000011': 1, '1000000001': 1, '1110110110': 1, '1111101101': 1, '0000101110': 1, '0111111101': 1, '1110100111': 1, '0001110010': 1, '0000101111': 1, '0000100111': 1, '1011101110': 1, '1001011111': 1, '1101101111': 1, '0000101000': 1, '0010101111': 1, '0000111010': 1, '0111111001': 1, '1111100010': 1, '1100011111': 1, '1100111111': 1, '1100111110': 1, '0100000010': 1, '1011110000': 1, '0111110000': 1}\n" ] } ], @@ -645,9 +669,9 @@ "text": [ "The shape of register `alpha` is (4096, 1).\n", "The bytes in register `alpha`, shot by shot:\n", - "[[0]\n", - " [0]\n", + "[[1]\n", " [0]\n", + " [1]\n", " ...\n", " [0]\n", " [1]\n", @@ -655,49 +679,49 @@ "\n", "The shape of register `beta` is (4096, 2).\n", "The bytes in register `beta`, shot by shot:\n", - "[[ 0 5]\n", - " [ 0 2]\n", - " [ 1 252]\n", + "[[ 1 255]\n", + " [ 0 0]\n", + " [ 0 0]\n", " ...\n", - " [ 0 2]\n", - " [ 0 2]\n", - " [ 0 1]]\n", + " [ 0 0]\n", + " [ 0 255]\n", + " [ 1 189]]\n", "\n", "The shape of `beta` after post-selection is (0, 2).\n", "The bytes in `beta` after post-selection:\n", "[]\n", "The shape of `beta` after bit-wise slicing is (4096, 1).\n", "The bytes in `beta` after bit-wise slicing:\n", - "[[5]\n", - " [2]\n", - " [4]\n", + "[[7]\n", + " [0]\n", + " [0]\n", " ...\n", - " [2]\n", - " [2]\n", - " [1]]\n", + " [0]\n", + " [7]\n", + " [5]]\n", "\n", "The shape of `beta` after shot-wise slicing is (5, 2).\n", "The bytes in `beta` after shot-wise slicing:\n", - "[[ 0 5]\n", - " [ 0 2]\n", - " [ 1 252]\n", - " [ 1 248]\n", - " [ 1 23]]\n", + "[[ 1 255]\n", + " [ 0 0]\n", + " [ 0 0]\n", + " [ 0 0]\n", + " [ 1 255]]\n", "\n", "Exp. val. for observable `SparsePauliOp(['ZZZZZZZZZ'],\n", - " coeffs=[1.+0.j])` is: -0.009765625\n", + " coeffs=[1.+0.j])` is: 0.265625\n", "Exp. val. for observable `SparsePauliOp(['IIIIIIIIZ'],\n", - " coeffs=[1.+0.j])` is: 0.01220703125\n", + " coeffs=[1.+0.j])` is: 0.123046875\n", "\n", "The shape of the merged results is (4096, 2).\n", "The bytes of the merged results:\n", - "[[ 0 10]\n", - " [ 0 4]\n", - " [ 3 248]\n", + "[[ 3 255]\n", + " [ 0 0]\n", + " [ 0 1]\n", " ...\n", - " [ 0 4]\n", - " [ 0 5]\n", - " [ 0 3]]\n", + " [ 0 0]\n", + " [ 1 255]\n", + " [ 3 123]]\n", "\n" ] } @@ -765,7 +789,7 @@ "output_type": "stream", "text": [ "The metadata of the PrimitiveResult is:\n", - "'execution' : {'execution_spans': ExecutionSpans([DoubleSliceSpan()])},\n", + "'execution' : {'execution_spans': ExecutionSpans([DoubleSliceSpan()])},\n", "'version' : 2,\n", "\n", "The metadata of the PubResult result is:\n", diff --git a/docs/guides/primitives-examples.ipynb b/docs/guides/primitives-examples.ipynb index 662dce64846..4ddd22058d8 100644 --- a/docs/guides/primitives-examples.ipynb +++ b/docs/guides/primitives-examples.ipynb @@ -60,7 +60,7 @@ "name": "stdout", "output_type": "stream", "text": [ - " > Expectation value: -0.07096774193548387\n", + " > Expectation value: -0.40476190476190477\n", " > Metadata: {'shots': 4096, 'target_precision': 0.015625, 'circuit_metadata': {}, 'resilience': {}, 'num_randomizations': 32}\n" ] } @@ -115,12 +115,12 @@ "name": "stdout", "output_type": "stream", "text": [ - ">>> Expectation values for PUB 0: 0.509090909090909\n", - ">>> Standard errors for PUB 0: 0.8121680697921517\n", - ">>> Expectation values for PUB 1: 0.11158798283261803\n", - ">>> Standard errors for PUB 1: 0.2937714076568461\n", - ">>> Expectation values for PUB 2: -0.3392612859097127\n", - ">>> Standard errors for PUB 2: 0.2915422114330256\n" + ">>> Expectation values for PUB 0: 1.5179487179487179\n", + ">>> Standard errors for PUB 0: 1.4003575477496304\n", + ">>> Expectation values for PUB 1: -0.37037037037037035\n", + ">>> Standard errors for PUB 1: 0.6884950343585293\n", + ">>> Expectation values for PUB 2: 0.0\n", + ">>> Standard errors for PUB 2: 1.4619752228373684\n" ] } ], @@ -187,46 +187,46 @@ "name": "stdout", "output_type": "stream", "text": [ - ">>> Expectation values: [[ 1.01639098e+00 9.63016769e-01 7.88296057e-01 5.61341608e-01\n", - " 2.88083889e-01 -2.60028213e-02 -3.56740461e-01 -6.22242953e-01\n", - " -8.40985985e-01 -9.62560579e-01 -1.01456622e+00 -9.47962504e-01\n", - " -7.97876044e-01 -5.71149690e-01 -3.09524812e-01 2.41780619e-02\n", - " 3.33702874e-01 6.18821529e-01 8.36652181e-01 9.69859617e-01\n", - " 1.02004050e+00]\n", - " [ 3.94604219e-02 3.48300949e-01 6.18365339e-01 8.40529795e-01\n", - " 9.72140566e-01 1.01684717e+00 9.61192010e-01 8.16579828e-01\n", - " 5.67500171e-01 2.90592933e-01 -3.05647198e-02 -3.31193830e-01\n", - " -6.26804851e-01 -8.39389320e-01 -9.63701054e-01 -1.01251337e+00\n", - " -9.60051535e-01 -8.02666038e-01 -5.77536348e-01 -2.96295306e-01\n", - " 3.01085300e-02]\n", - " [-6.84284772e-04 -3.47616664e-01 -6.34560079e-01 -8.50794067e-01\n", - " -9.90160065e-01 -1.03144525e+00 -9.68719142e-01 -8.18404587e-01\n", - " -6.08329162e-01 -2.99944825e-01 6.61475280e-03 3.54231417e-01\n", - " 6.20874383e-01 8.34827422e-01 9.85598167e-01 1.02848001e+00\n", - " 9.67806763e-01 8.16579828e-01 5.78448727e-01 2.75994858e-01\n", - " -2.34937772e-02]\n", - " [ 1.02962049e+00 9.68034858e-01 8.20913632e-01 5.79133012e-01\n", - " 2.94926737e-01 -3.37580488e-02 -3.40773816e-01 -6.00802030e-01\n", - " -8.43495029e-01 -9.95178153e-01 -1.01912812e+00 -9.68491047e-01\n", - " -8.09736980e-01 -6.06276308e-01 -3.05191008e-01 3.62670929e-02\n", - " 3.56740461e-01 6.12434871e-01 8.45319788e-01 9.84229597e-01\n", - " 1.02118097e+00]]\n", - ">>> Standard errors: [[0.00595115 0.00508865 0.00843987 0.00978967 0.01067867 0.01172416\n", - " 0.01228383 0.00820899 0.00871829 0.00800992 0.00693372 0.00708266\n", - " 0.01002764 0.01159551 0.0130231 0.00851921 0.0108899 0.00967441\n", - " 0.00742857 0.00558575 0.00576161]\n", - " [0.01264847 0.00949588 0.00917453 0.00794592 0.00697786 0.00569674\n", - " 0.00656374 0.00817565 0.00966 0.01255139 0.00897733 0.01044544\n", - " 0.00959017 0.0105171 0.00727775 0.00641424 0.00702955 0.00754154\n", - " 0.00988771 0.00854798 0.00997289]\n", - " [0.01006651 0.008544 0.01013901 0.00851411 0.00670278 0.00543188\n", - " 0.00637553 0.00699797 0.00835709 0.01189992 0.00844175 0.00959466\n", - " 0.00947296 0.00811621 0.0070513 0.00616643 0.00628899 0.00775769\n", - " 0.0100668 0.01226314 0.01329339]\n", - " [0.00580384 0.00715893 0.00876749 0.01103421 0.01029785 0.01060998\n", - " 0.0102456 0.01097566 0.00779237 0.00663169 0.00502441 0.00626576\n", - " 0.00884914 0.01034657 0.00939776 0.01213028 0.01184394 0.00934017\n", - " 0.00781088 0.00645326 0.00614667]]\n", + ">>> Expectation values: [[ 1.12918608e+00 1.08133115e+00 9.59000018e-01 7.31768355e-01\n", + " 4.34814285e-01 8.27161285e-02 -2.39274625e-01 -5.58096177e-01\n", + " -8.51564127e-01 -9.99248862e-01 -1.06611899e+00 -1.02428554e+00\n", + " -8.78502330e-01 -6.43981506e-01 -3.62873437e-01 9.50760097e-04\n", + " 3.66676478e-01 6.21163264e-01 8.88643771e-01 1.03189163e+00\n", + " 1.11650927e+00]\n", + " [ 9.50760097e-03 3.80937879e-01 6.48418386e-01 8.95932932e-01\n", + " 1.07626043e+00 1.09178951e+00 1.02523631e+00 8.61705568e-01\n", + " 5.82815940e-01 2.98855591e-01 -4.24672844e-02 -4.11362202e-01\n", + " -7.02611712e-01 -9.27941855e-01 -1.10034635e+00 -1.12760148e+00\n", + " -1.08164807e+00 -8.97834452e-01 -6.23064784e-01 -3.18504633e-01\n", + " 2.78889629e-02]\n", + " [ 5.51440857e-02 -2.83643429e-01 -5.53659297e-01 -8.11949123e-01\n", + " -9.79282900e-01 -1.02270094e+00 -9.97981182e-01 -8.59170208e-01\n", + " -6.34473905e-01 -3.85057839e-01 -4.59534047e-02 2.87129549e-01\n", + " 5.57145417e-01 8.02441522e-01 9.30477215e-01 1.01255950e+00\n", + " 9.80233660e-01 8.64240929e-01 6.40178466e-01 3.59070397e-01\n", + " 4.40518845e-02]\n", + " [ 1.04995607e+00 9.86888981e-01 8.11632203e-01 5.72674499e-01\n", + " 2.88714150e-01 -3.01074031e-02 -3.27378394e-01 -6.31304705e-01\n", + " -8.58853288e-01 -1.00939030e+00 -1.02301786e+00 -9.88473581e-01\n", + " -8.36985806e-01 -5.94225061e-01 -2.78572709e-01 3.67627238e-02\n", + " 3.47661276e-01 6.46833786e-01 8.91812971e-01 1.01858098e+00\n", + " 1.04932223e+00]]\n", + ">>> Standard errors: [[0.01502852 0.01698161 0.02002459 0.02488249 0.02878353 0.02891516\n", + " 0.03399644 0.03124151 0.02550105 0.01827124 0.02048022 0.01517325\n", + " 0.02171238 0.02368944 0.02652915 0.02639721 0.02638114 0.02467926\n", + " 0.01774744 0.01481562 0.01610088]\n", + " [0.01761664 0.0189009 0.01693648 0.01614332 0.01275625 0.01311442\n", + " 0.01642749 0.01765867 0.02160117 0.01790582 0.0198112 0.02156914\n", + " 0.01645335 0.01689341 0.01424665 0.01311189 0.01243766 0.01544483\n", + " 0.01421926 0.01571725 0.01866968]\n", + " [0.02972514 0.02297419 0.02059297 0.01976156 0.01807414 0.01357199\n", + " 0.01579011 0.01906311 0.02404768 0.02478145 0.02431407 0.02352675\n", + " 0.02448941 0.01814679 0.01511145 0.01378665 0.0193495 0.01741964\n", + " 0.02537469 0.0287372 0.03304963]\n", + " [0.01212513 0.01348453 0.01434919 0.01658414 0.0154397 0.02027393\n", + " 0.01797508 0.01791073 0.01471314 0.01496996 0.01513448 0.01254911\n", + " 0.01564281 0.01880725 0.01686773 0.0165835 0.01575464 0.01682835\n", + " 0.01401973 0.01313107 0.01311742]]\n", ">>> Metadata: {'shots': 10016, 'target_precision': 0.01, 'circuit_metadata': {}, 'resilience': {}, 'num_randomizations': 32}\n" ] } @@ -308,9 +308,9 @@ "name": "stdout", "output_type": "stream", "text": [ - " > Expectation value: -0.2519148936170213\n", + " > Expectation value: -0.3375\n", " > Metadata: {'shots': 4096, 'target_precision': 0.015625, 'circuit_metadata': {}, 'resilience': {}, 'num_randomizations': 32}\n", - " > Another Expectation value: -0.2281508739650414\n", + " > Another Expectation value: 0.3282937365010799\n", " > More Metadata: {'shots': 4096, 'target_precision': 0.015625, 'circuit_metadata': {}, 'resilience': {}, 'num_randomizations': 32}\n" ] } @@ -397,7 +397,7 @@ "name": "stdout", "output_type": "stream", "text": [ - " > First ten results: ['1000111101011101110011101110000100110111000100000101011011010000101110001100110011011001001001000000100011000001011111010000000', '1100010110000101001010101110110011101000001100010111000010000000111010001101001111000000101101110001111011000000010011100110001', '1110011110110101000110101001110100100011101111000011100010000010010010010100100011000000001111100000100000001100011111110000000', '0010101000110000001010111011111010011001111000001101000110000100001010000011111001000001110010011110000000001000110111001000000', '1000001110001100000010111101000001100011111001001101010001100011000100010011000110010000110001100010101010001101100101000010110', '1100101011010001001000010100101001000011110011011011101001100101000001000101000011001001110001110010000011011000010001001010001', '0101011010001011010101010111111011011110111000110000100010000110110000100110100001000000001000110010100001000000010011101010001', '1110001010111011010010010010101011000000010001101110101101000001100010100101110111001111100000000011100010000100000100101010000', '0010111110110101000100100010001001101101111010001110100110001000010100100000000000010010111110110111100010001101011011001000100', '0100100101000111000011011110101001001101101000010001100011100100001000000001100100010101010100100110100000100000001100001000000']\n" + " > First ten results: ['0001011010000111001110000010001111001001010111100100010001100001000100010000110111111011101010000001000010011000100000101010001', '1101000110000000100101110011010001101011000001110100001001111111010001010110100110000010101110100100000100001111110100101011010', '1001010110111010011110000010100101100000001001000011100100000000000000010100000101011100010111001111000000111111000100010100100', '0101011100010100011010100111100000101001001101010000010001110110001001001101100101100101000100100010000100011001100001000100110', '0110100001010110001011011001101001101011000110100011100010010110010001010100000111010000001001101000010000001000011111010100010', '1000101011010010110000100001101100110001110001100010101011101110110000001100001000110111001111101001010011111010110101010011001', '0011000111000000011110110110100110010100101110000000010010010010111101011000000000010110000010100011101001111010010101000101010', '1110111110001000000011000010101100010001010111100000011101001010000001010001110111010100101011000100011010011000011100000101000', '0011101001000100111011100011110011111010001011111000111100011000001000001101111101001111001001000011010010110100111100110100010', '0110000011101011101010011010110000011010010111110000011100110010100000100010110111110010111010000001100000011011011100000111010']\n" ] } ], @@ -452,9 +452,9 @@ "name": "stdout", "output_type": "stream", "text": [ - " > First ten results for pub 0: ['0001101010110001111110100001011110101010011001000010100100000101111000011000110000000101011001000000000001000110101010011100000', '1001100101000111011101000000000111011001010000001100000101000101011111011110001100000000001100101000110000000000000010111000011', '1110000010101100000111010001011110010000111010010011000000011000000101110110110100010100011010000001000101001100001010100000100', '0110011100010110110010010000101100000011000000011000000010001110101011001110000100110011110110010000000100001000101000111000000', '1011011000100010101100001001000000000001110000010111000000000010001100101100010101010010010000000010101010010100000110000010101', '1011011110000110001011001001000001100101110001000111101101000011000111010010111010010100111000111010000001001010000101010100101', '1000000000101011110111010001000101101110010010001000000101001010100001111100110100000101111001100101001000011100000001110100000', '1100010001000011000111110001010111001010000001100110110000000001100000111010110110010001010000000010011101111100101001100000000', '1000010000100101010010011001110101000001100010001101100000000010000001100001101000000110010000000000000110111110100000000000000', '1010100010100101001101010010010100010000010001110110111100000101100100100011110000000101110001010010000000101101100001010000001']\n", - " > First ten results for pub 1: ['0100001101100010001000010110100001111010001010001101000010101110000011000001001001101101100000110101011011110001001010011100100', '1001111000000010010100100001000010100000011011100111010110100010000001010100010101111100100100111100000001000110100101101000111', '1000110101010000010101000110010001100110101000000110001000100110000111110000010100101100000000000110101011010000100110100110111', '1100110001111010000001111011000001101110001100011000011110000001100101110100010101111000000101111100010110001110101110111101100', '1010100111110010110000110100101111010010011110000100000110000011111011110000000100010000000000010101010010010001000010111011110', '0001101011001110000001011001100100110100001111101101111000101010000111100100010010010000100010011110000010000000101000100011011', '1111011100000000101101000010100001001110101000000001011100101010110000100110010000100011000000101100000010110111010010100010111', '0001011011011000110000001001000101001010000000001010100101010011001010110101000100111001001101001001010011000100100010100001010', '0011011111110010110011111111111000110110101100011000101111000011001010010100000000100000101101111100000010110011110000000010111', '1000000101001111100001101011010001000110101100010000101010001000100011110100000000000101000100111100000001000001000011010110001']\n", - " > First ten results for pub 2: ['1011111000010100111110101011010010010100001111111100000111110011001110011011100001110110000100101011010111111001110000100000011', '0000000010001100100100011101000000000000100101010011110101101000011000111000011001000111100101011101110011000101000011100100100', '0100010010011111000100101001000011110011101111101100010001100101000000001100011000011100010000001110010010100101010001100101101', '0010001110001000010010000101001011100011001000101111101101011100000010100111011011000011111100000001000111000001000100000011000', '0010111111101000111010010011010000001001100001000010010000101101110000111111010111010010001000000010001111010001000001100000000', '1011110011010001100001001011000011000000110001111001001010100101000110000100011011011110010000001110010100000000100101100100010', '1111011010011001101010010001001010000100101011100011000000011110100100111010100000010001010011100111001000100001101000000100110', '0101010110000001001100101111001101011000100010100001111111111010001001001110001000010011111100001011101111011000001000000101000', '1110011010100111010111111100111010100001000011011000110000101100111110001010010010000110011000101010101001101100000100100000001', '0110001011111100011100001111101101000101001011011001111001101001000001111100010001010100100000101001110100010100001001100000100']\n" + " > First ten results for pub 0: ['0111001010011001100000010000101110010111110010000000100000001001011101000111000011011100110001110001000100110100001100010001010', '1000110010111000000110100100000011000011000100111000111001010000100100000111010101011111100111101110010010100011011001110001100', '0010101100101001111101010101100010101010000000110010010011100000000101101111001100101000100010100000101000110101000100001000001', '0001100111011011111101100010010110101000100010110000110110111001001110101010111100010110010100011000011110110100011011110010100', '1011000000000000011100001100110101111111010000011100011010001110010001000001001100001100100000000010000110100100001101000001001', '1011100010000100010010100010000111000011001100101100001001101000010010101001101001110001001100111100001010100000100001001011000', '0000101001000101111110101001111101100100100010110000000101100001001001100100100101111010100110100111011100110101001000000010100', '0011001000111100101011001100100111000001010110011101110011101000010001100111001001100000100101100100001100111100111011001010010', '0100010101101110101111010000100111010101010000011010110011100010111101011011100001011101111001101110001010110000110101001000000', '0110100010111000101111100000011101110011110101011010001011011010101101100000001100000100001000111110111010100100101100001011010']\n", + " > First ten results for pub 1: ['1111100111101011100010011110111110100100101100011111001010100100011111001101110010111100101011101000110011000000010111010011101', '1100101010011010000011001000011000101101111011001010001010000001100010110011001111110100000010100000000100001010000100000110011', '1101010100011010101010110101110101011101101010000010100010001101100011000001100110101000101011000001000000000100100011101001110', '1101001000100011100010111011000111011111111010001011001010010001011010000110100000000010000110000010000000000000101000011000111', '1100110101001010100010110100000110110011111111011000000100001101000111010010101111100011001111100011100000000110000100101001011', '0110001101010000100010110101011001010110110101101010000010000011000010110010001101100001000110000110001100001000101011010001110', '1010010110011011000001100111111101000101111111100000100000011101000011100010100100001011010111010010010001101100100000110101100', '0011101110110111000100100101000010100101110110010000010010110000001010101010001110011111011001000011010100100110100000000001101', '0010101110000000011001100011011000100101110000011010100101000110001010000010101011000101101110000001010101001110000110010100110', '1100011010101101001001001000001100100000110000000110101110010111010010100010001010011011100010010010001110001010000001100100101']\n", + " > First ten results for pub 2: ['0101110001110001000001001100010110101000111001011111001111100000010000111101001010100010000111000111010001100000000100010010011', '0011101000010110001000100111101110000000100001110110111110101011000100111101011100000100000100001000000000000100101010100010010', '0000110011010100101100000001111100010001000001100100001011010011100100111010101010000000001000100000000000000110000100010001111', '0011010001100010101010110000001011101100110111000000001100100110011001110001000101010010100011111010001010000011101010000000010', '0101100111001011111000001101101000010010111100000001000101001100011000000111000100000110001100101001001001011101101010010001110', '0111110110000000000100111000110100000111000000100000000010001011001001100101001100010100001000000001000100010100100110100011100', '0000011010110110000101111010001100111100100001001110111101010110010001100101001001000010000010110001011110001001000100000000101', '0010000101100011101100010011100000000101100010011001000100000100010010100111011100001010001100001010000011110000000100110000101', '0000010001010010111010001010011100011101001111110011110000000001001101000000101101000011001101001000010010100000000100000001010', '0010000000100100011000011111011000100000000011000100010010000101000001000110111000000010001000001000000110000100000010011000011']\n" ] } ], @@ -511,7 +511,7 @@ "name": "stdout", "output_type": "stream", "text": [ - " >> First ten results for the meas output register: ['0111011001110111000111100100011110100100100000000011011101001011000101000001100000100001011101000101000001000010011001111101001', '0001100110011111000001101100001111000001010000011011000100011100010100110111011110000110000110100100010001101110100111100110011', '0100000011101011001111001110011111100001110000001101001001110001110000100001101010000111000010110111001100111001111100110010111', '0011100111001011110010101101100110100101011010110010101000110001111001100110111011001001101101111011010011010111101011001010111', '0000111011011100101111101101110110000100000110000111100000111010111000100110101010001100001010100101011000111111110011000100110', '0101110001000101010000100100111010101000001101110111101011011101101100100001100010000110010110011100011000011101011111011100101', '0001001000011111100001100110001110100001101000011101001101111101100110000011100100011011111111010111111101111101101100010101001', '0101000000011011001101110100111010000011011001010111011101111000100001000110101000101010000010001101110001100010110111010001110', '1111010011001011101110101111111111100000100101101000001000011001011011100111011010011100101010111111001101011111110111100101000', '1000100000011111001001001100010111100000011010100001000010111000110100000011011010101101000010011111001001001011001101000001111']\n" + " >> First ten results for the meas output register: ['0001110111010000110001101000110001100101110011000100001000011001000110001101011010000110001100101000010000111100110101011000111', '0001111001010111100010001110010010100001111101100001101000000111000001100001101010000011100010111110101100100000010010110000101', '1101011001001101010001000100011011000000010010010011101000101001100101010001001100101100110111101010011001101100100100000001001', '0101001001011101101000000111110010100000111011010000011100001011010110101101100110111101010110010110111001011111000100101001111', '0011000001111111000101101101101110000000110100010001001010111011000110101110100110001010010101100010111000011101111001001110010', '0001111001010001101000100100000111100001100000110011001010101011010011011111010101001010001001001011011001011010101001101101011', '1100100101010111000000101100111010100000000101010110011010011010000010011110100100010101100000110110100011000010010111011110110', '1101111011010110101100000011000010000001001000000011101011111001000110000100101110100010011100110010100001000001111000110001100', '1101010010110100100001100000110001000011111111101101011100111011110001100110101101000011011100000101111010110001001010000110110', '0010011000011101010011110101000111111011110000001001001101100010100001101001011111110010111010001110001001111010101100010111101']\n" ] } ], @@ -582,7 +582,7 @@ "name": "stdout", "output_type": "stream", "text": [ - " > The first ten measurement results of job 1: ['0001011001100101000000000000001010100100010111101011000101111101000100000011111100001100011101001001100000101110001010011010100', '0010000101110111111000111000111011000010000100101100101010000101101001010010100000000010001011000100000100100100001011101010011', '1110111010100011100101000101010110100010011001001111100000000100010001110000010101000000101001001001000001011100101011011010100', '1010110000011000001110111111001001001101010010001011000100100000010100011001011100110000101010100000111001101100001001110010100', '0001111101100100000001001000000110100100011111100101001101100110001001010010011100010000000101011000011000011101101011111010100', '0000000110110010010011001101011101000101000101011101111100000101010000010111110100110100110000100101000011000100001010000001000', '0111010111011000011001101111011101001011101000101100000100101110111010100011101110111100101111011001000001010000000010011010001', '1111101100100101011110100100001100100001000011000101000101010111000100010100100000110100000100101000000100010010001000101001100', '1010100011001001010110010001111000100000001101011000100010001000100001000110100001011010100000011000111000100101001010000010100', '1000000001000001010001100110011011101111011000110101001011001101010000010101101100010000100010010011100000110111110011010000100']\n" + " > The first ten measurement results of job 1: ['0000011001000000100000101100000100000010011100110000011000110010110000001100010010101100101100100000010010101010101001011100110', '1000011010000100001110011010100000011010011101110010000100010110010001110000001010010001001100010000010010111101101000000000000', '0100101100111001000111111000000111000010010110111000000111010010101000100000010001100110000010100101000001011101000101010101010', '0001100000011111011010100000111010001010110111101010010110001000000110010001010100110110101000101001000010101100001101011000010', '0101101000111010010010011001011111000110010111001101001110000100011011110000010000110110000101000001100001110000000000100101001', '1000101101001100011000101011110001110001000010000000111110001000001010100101011001110110000100100001000101100010000000100000000', '1100001000101000001111001111010010010000010110101011001100011010101001110000100110100001001000101001000000001010000000010000000', '0011110100101100001000100111101000110100000001101101001001000100000010001000000010111110001000110001110000000000111101001000111', '0100000000000000000110010000000001000011000010000000100110000100001111011000110111001010101100100000011010001010101101010001001', '1100011100110001000000101110010111011111110100010000000101011000010010010010000010100000011001111000000000001110101110010001101']\n" ] } ], @@ -637,7 +637,7 @@ "name": "stdout", "output_type": "stream", "text": [ - " > The first ten measurement results of job 2: ['1010111100011110101001100111111000111011101010010000000001000010001101110000000100100110010000000001111000000110001100000001100', '1010001110011010011100111000001011111100000111100110011000100000001000000000000000000100101000010000000011010000000101000010000', '0101100100100100101001011000101000011001101100000100011101101010011100001100000000111101010000001101111000010001101111110000001', '1111011001000010100100010000000111000010101000100100001000000000011000100000011010100100101000010101001010010101000010100100000', '1101000010011000000100111100001110010101100100011100011100000100001110001000000111101101100001010100110010000000110111000010001', '0101110000001010001101100000011000101111101100110110000000001000000100000101010110001100110111010111010001000011010100010011000', '0001011101110110000000101001111010010101111110010100101101100010001100001101010101000000110000000101000000100000000010000001110', '0011010001110000000101011100011110011111000101010110111010000010001100100100011010001000010000000000000011100011110110100000000', '0000001001000110111001011001010110100100111000101000110111001000000000010001000100101001010000001001101011000011001000000010000', '0100011101111111010101111001110101110011001111011110010100000010001000001010001010100000010000010000010000001110010001110001001']\n" + " > The first ten measurement results of job 2: ['0110000010101001011000001100111001111000100001101100010000010010000000010111001000010000100100000100011100111010101101011000001', '1100000010111010100000000000100111011100101101010100101101101100001110101010100011000100100100011001011000101000011000100101100', '1001011010010000111100001100100011110010111111001000001000000010101000100010011001000011100100100111010011001101001000000010011', '0000000110001001001101000001000111011001100001000000101001111010010110100100101101010110101000111111000010011000010000000001001', '1101111101110101110010011000001101110001110110000101000100111110001100110010011000101100110001101000000000110000101011011000010', '0110011111110100101101110100000111001000101001110000111110001000010111100110100011000101110000000001000101011001101000101100011', '1110011001000000101110111001100111001010001000001001001000001000000000101110111001000101010100000001101000111000001000001000000', '1110000011110000101010111000100111000111010000101100011101111100000001110011001010010110110011001111010100010101011000011000000', '1111011110010110000000100100000011110101011000010000110001000010110100000011011101010000101000101110000110110100000000000011000', '1111001110001100111010001000010110001100011010010000110000100110110010100001011001001101100100101011100100010000000101000011000']\n" ] } ], diff --git a/docs/guides/qiskit-addons-aqc-get-started.ipynb b/docs/guides/qiskit-addons-aqc-get-started.ipynb index 6c95e385434..bb6f3c658ab 100644 --- a/docs/guides/qiskit-addons-aqc-get-started.ipynb +++ b/docs/guides/qiskit-addons-aqc-get-started.ipynb @@ -28,7 +28,7 @@ "qiskit-aer~=0.17\n", "qiskit-addon-utils~=0.1.1\n", "qiskit-addon-aqc-tensor[aer,quimb-jax]~=0.2.0\n", - "scipy~=1.16.0\n", + "scipy~=1.16.1\n", "```\n", "" ] diff --git a/docs/guides/qiskit-addons-cutting-gates.ipynb b/docs/guides/qiskit-addons-cutting-gates.ipynb index d20a7f42521..5da270337ee 100644 --- a/docs/guides/qiskit-addons-cutting-gates.ipynb +++ b/docs/guides/qiskit-addons-cutting-gates.ipynb @@ -166,10 +166,10 @@ "name": "stdout", "output_type": "stream", "text": [ - "Reconstructed expectation value: 0.49253337\n", + "Reconstructed expectation value: 0.47155762\n", "Exact expectation value: 0.50497603\n", - "Error in estimation: -0.01244267\n", - "Relative error in estimation: -0.02464011\n" + "Error in estimation: -0.03341841\n", + "Relative error in estimation: -0.06617822\n" ] } ], @@ -418,10 +418,10 @@ "name": "stdout", "output_type": "stream", "text": [ - "Reconstructed expectation value: 0.52135482\n", + "Reconstructed expectation value: 0.53306178\n", "Exact expectation value: 0.56254612\n", - "Error in estimation: -0.0411913\n", - "Relative error in estimation: -0.07322298\n" + "Error in estimation: -0.02948434\n", + "Relative error in estimation: -0.05241231\n" ] } ], diff --git a/docs/guides/qiskit-addons-cutting-wires.ipynb b/docs/guides/qiskit-addons-cutting-wires.ipynb index d9d32eccf6f..603d22417a7 100644 --- a/docs/guides/qiskit-addons-cutting-wires.ipynb +++ b/docs/guides/qiskit-addons-cutting-wires.ipynb @@ -347,10 +347,10 @@ "name": "stdout", "output_type": "stream", "text": [ - "Reconstructed expectation value: 1.28073865\n", + "Reconstructed expectation value: 1.4237594\n", "Exact expectation value: 1.59099026\n", - "Error in estimation: -0.31025161\n", - "Relative error in estimation: -0.19500535\n" + "Error in estimation: -0.16723086\n", + "Relative error in estimation: -0.10511118\n" ] } ], diff --git a/docs/guides/qiskit-addons-mpf-get-started.ipynb b/docs/guides/qiskit-addons-mpf-get-started.ipynb index b1a10031b2e..bf68152c7b7 100644 --- a/docs/guides/qiskit-addons-mpf-get-started.ipynb +++ b/docs/guides/qiskit-addons-mpf-get-started.ipynb @@ -27,7 +27,7 @@ "qiskit[all]~=2.1.1\n", "qiskit-addon-utils~=0.1.1\n", "qiskit-addon-mpf~=0.3.0\n", - "scipy~=1.16.0\n", + "scipy~=1.16.1\n", "```\n", "" ] @@ -170,6 +170,14 @@ "Exact solution: [ 0.17239057 -1.19447005 2.02207947]\n", "Approximate solution: [-0.40454257 0.57553173 0.8290123 ]\n" ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "/home/runner/work/documentation/documentation/.tox/py311/lib/python3.11/site-packages/osqp/interface.py:405: PendingDeprecationWarning: The default value of raise_error will change to True in the future.\n", + " warnings.warn(\n" + ] } ], "source": [ @@ -343,9 +351,9 @@ "output_type": "stream", "text": [ "Exact value: 0.4006024248789992\n", - "PF with 19 steps: 0.386499061997744\n", - "MPF using exact solution: 0.3954847855979985\n", - "MPF using approximate solution: 0.42991214253489834\n" + "PF with 19 steps: 0.3864990619977473\n", + "MPF using exact solution: 0.3954847855980054\n", + "MPF using approximate solution: 0.42991214253490107\n" ] } ], diff --git a/docs/guides/qiskit-addons-obp-get-started.ipynb b/docs/guides/qiskit-addons-obp-get-started.ipynb index 86f71f6db8c..6679427d169 100644 --- a/docs/guides/qiskit-addons-obp-get-started.ipynb +++ b/docs/guides/qiskit-addons-obp-get-started.ipynb @@ -437,10 +437,10 @@ "output_type": "stream", "text": [ "Exact expectation value: 0.8854160687717517\n", - "Backpropagated expectation value without truncation: 0.9028724222402817\n", - "Backpropagated expectation value with truncation: 0.8253677812015636\n", - " - Observed Error for observable without truncation: 1.746e-02\n", - " - Observed Error for truncated observable: 6.005e-02\n" + "Backpropagated expectation value without truncation: 0.850809078525743\n", + "Backpropagated expectation value with truncation: 0.8664613225789609\n", + " - Observed Error for observable without truncation: 3.461e-02\n", + " - Observed Error for truncated observable: 1.895e-02\n" ] } ], diff --git a/docs/guides/represent-quantum-computers.ipynb b/docs/guides/represent-quantum-computers.ipynb index 3e8bd9b0cd9..bd3f240ca1e 100644 --- a/docs/guides/represent-quantum-computers.ipynb +++ b/docs/guides/represent-quantum-computers.ipynb @@ -320,7 +320,7 @@ "name": "stdout", "output_type": "stream", "text": [ - "['reset', 'if_else', 'switch_case', 'sx', 'delay', 'x', 'id', 'for_loop', 'measure', 'rz', 'ecr']\n" + "['switch_case', 'for_loop', 'if_else', 'ecr', 'delay', 'reset', 'measure', 'x', 'sx', 'rz', 'id']\n" ] } ], diff --git a/docs/guides/save-jobs.ipynb b/docs/guides/save-jobs.ipynb index 19cc8aabe25..6e3e94c73ea 100644 --- a/docs/guides/save-jobs.ipynb +++ b/docs/guides/save-jobs.ipynb @@ -58,9 +58,9 @@ { "data": { "text/plain": [ - "[,\n", - " ,\n", - " ]" + "[,\n", + " ,\n", + " ]" ] }, "execution_count": 1, @@ -103,7 +103,7 @@ "name": "stdout", "output_type": "stream", "text": [ - "d25t5vhe32ns739fjc70\n" + "d2ab4kjp64qc73ej81r0\n" ] } ], diff --git a/docs/guides/simulate-with-qiskit-aer.ipynb b/docs/guides/simulate-with-qiskit-aer.ipynb index 297d8809ef2..7297a2ce923 100644 --- a/docs/guides/simulate-with-qiskit-aer.ipynb +++ b/docs/guides/simulate-with-qiskit-aer.ipynb @@ -221,23 +221,25 @@ { "data": { "text/plain": [ - "{'01000000': 6,\n", - " '11100000': 2,\n", - " '11001000': 1,\n", - " '00000000': 71,\n", - " '01010000': 2,\n", - " '00001010': 1,\n", - " '00011000': 2,\n", - " '00001100': 3,\n", - " '01111000': 1,\n", - " '00001000': 2,\n", + "{'00000000': 73,\n", + " '00001100': 1,\n", + " '00000001': 1,\n", + " '10000000': 3,\n", + " '00000110': 2,\n", + " '01110000': 1,\n", + " '00000101': 2,\n", + " '00100000': 2,\n", + " '10111000': 1,\n", " '00010100': 1,\n", - " '00101000': 1,\n", - " '10000000': 2,\n", + " '01100000': 1,\n", + " '00000010': 1,\n", + " '01000000': 2,\n", + " '11000000': 3,\n", + " '00011110': 2,\n", " '00001111': 1,\n", - " '00110000': 1,\n", - " '01100000': 2,\n", - " '01010100': 1}" + " '00000011': 1,\n", + " '00101000': 1,\n", + " '00010000': 1}" ] }, "execution_count": 5, diff --git a/docs/guides/simulate-with-qiskit-sdk-primitives.ipynb b/docs/guides/simulate-with-qiskit-sdk-primitives.ipynb index d17a5009fd3..92367f3c0ec 100644 --- a/docs/guides/simulate-with-qiskit-sdk-primitives.ipynb +++ b/docs/guides/simulate-with-qiskit-sdk-primitives.ipynb @@ -440,7 +440,7 @@ "output_type": "stream", "text": [ "The number of bitstrings is: 1024\n", - "The counts are: {'00': 524, '11': 500}\n" + "The counts are: {'00': 493, '11': 531}\n" ] } ], @@ -483,7 +483,7 @@ { "data": { "text/plain": [ - "" + "" ] }, "execution_count": 13, diff --git a/docs/guides/specify-runtime-options.ipynb b/docs/guides/specify-runtime-options.ipynb index 2c42d7f8674..4323fd55081 100644 --- a/docs/guides/specify-runtime-options.ipynb +++ b/docs/guides/specify-runtime-options.ipynb @@ -182,7 +182,7 @@ { "data": { "text/plain": [ - "" + "" ] }, "execution_count": 4, @@ -328,7 +328,7 @@ { "data": { "text/plain": [ - "" + "" ] }, "execution_count": 6, diff --git a/docs/guides/synthesize-unitary-operators.ipynb b/docs/guides/synthesize-unitary-operators.ipynb index 8edce831f9f..e2f26548cfa 100644 --- a/docs/guides/synthesize-unitary-operators.ipynb +++ b/docs/guides/synthesize-unitary-operators.ipynb @@ -50,7 +50,7 @@ { "data": { "text/plain": [ - "" + "" ] }, "execution_count": 1, diff --git a/docs/guides/transpiler-plugins.ipynb b/docs/guides/transpiler-plugins.ipynb index 5f3674f367f..c2707cc1765 100644 --- a/docs/guides/transpiler-plugins.ipynb +++ b/docs/guides/transpiler-plugins.ipynb @@ -164,7 +164,7 @@ { "data": { "text/plain": [ - "['ag', 'bm', 'default', 'greedy', 'layers', 'lnn', 'rb_default']" + "['rb_default', 'ag', 'bm', 'default', 'greedy', 'layers', 'lnn']" ] }, "execution_count": 4, @@ -197,7 +197,8 @@ { "data": { "text/plain": [ - "['FullAdder.default',\n", + "['clifford.rb_default',\n", + " 'FullAdder.default',\n", " 'FullAdder.ripple_c04',\n", " 'FullAdder.ripple_v95',\n", " 'HalfAdder.default',\n", @@ -248,8 +249,7 @@ " 'permutation.token_swapper',\n", " 'qft.default',\n", " 'qft.full',\n", - " 'qft.line',\n", - " 'clifford.rb_default']" + " 'qft.line']" ] }, "execution_count": 5, diff --git a/docs/guides/visualize-results.ipynb b/docs/guides/visualize-results.ipynb index c44b184be08..28e6dd297b1 100644 --- a/docs/guides/visualize-results.ipynb +++ b/docs/guides/visualize-results.ipynb @@ -78,7 +78,7 @@ "name": "stdout", "output_type": "stream", "text": [ - "PrimitiveResult([SamplerPubResult(data=DataBin(meas=BitArray()), metadata={'circuit_metadata': {}})], metadata={'execution': {'execution_spans': ExecutionSpans([DoubleSliceSpan()])}, 'version': 2})\n" + "PrimitiveResult([SamplerPubResult(data=DataBin(meas=BitArray()), metadata={'circuit_metadata': {}})], metadata={'execution': {'execution_spans': ExecutionSpans([DoubleSliceSpan()])}, 'version': 2})\n" ] } ], diff --git a/docs/tutorials/hello-world.ipynb b/docs/tutorials/hello-world.ipynb index 9ede1156780..7a9cc3b6892 100644 --- a/docs/tutorials/hello-world.ipynb +++ b/docs/tutorials/hello-world.ipynb @@ -251,7 +251,7 @@ "name": "stdout", "output_type": "stream", "text": [ - ">>> Job ID: d266i35vkhdc73ebea0g\n" + ">>> Job ID: d2fdqkvl2k0s73ajaa00\n" ] } ], @@ -586,7 +586,7 @@ "name": "stdout", "output_type": "stream", "text": [ - "d267lb8r9r0c73cfvcrg\n" + "d2fern7l2k0s73ajbbv0\n" ] } ], diff --git a/public/docs/images/guides/DAG-representation/extracted-outputs/3c144b49-0.avif b/public/docs/images/guides/DAG-representation/extracted-outputs/3c144b49-0.avif index d45c79f3be1..90557932035 100644 Binary files a/public/docs/images/guides/DAG-representation/extracted-outputs/3c144b49-0.avif and b/public/docs/images/guides/DAG-representation/extracted-outputs/3c144b49-0.avif differ diff --git a/public/docs/images/guides/DAG-representation/extracted-outputs/e498faa3-0.avif b/public/docs/images/guides/DAG-representation/extracted-outputs/e498faa3-0.avif index c4cefafa617..6dcb03e336d 100644 Binary files a/public/docs/images/guides/DAG-representation/extracted-outputs/e498faa3-0.avif and b/public/docs/images/guides/DAG-representation/extracted-outputs/e498faa3-0.avif differ diff --git a/public/docs/images/guides/DAG-representation/extracted-outputs/ed80a69f-0.avif b/public/docs/images/guides/DAG-representation/extracted-outputs/ed80a69f-0.avif index 95df7148a18..4e5c63ecd95 100644 Binary files a/public/docs/images/guides/DAG-representation/extracted-outputs/ed80a69f-0.avif and b/public/docs/images/guides/DAG-representation/extracted-outputs/ed80a69f-0.avif differ diff --git a/public/docs/images/guides/DAG-representation/extracted-outputs/fdb3dd70-0.avif b/public/docs/images/guides/DAG-representation/extracted-outputs/fdb3dd70-0.avif index 3d196ee0a1c..ecc586ff032 100644 Binary files a/public/docs/images/guides/DAG-representation/extracted-outputs/fdb3dd70-0.avif and b/public/docs/images/guides/DAG-representation/extracted-outputs/fdb3dd70-0.avif differ diff --git a/public/docs/images/guides/build-noise-models/extracted-outputs/284e4fb1-726e-4ecf-a200-cbfae8baaef7-0.svg b/public/docs/images/guides/build-noise-models/extracted-outputs/284e4fb1-726e-4ecf-a200-cbfae8baaef7-0.svg index 9232d173866..ed02d422d98 100644 --- a/public/docs/images/guides/build-noise-models/extracted-outputs/284e4fb1-726e-4ecf-a200-cbfae8baaef7-0.svg +++ b/public/docs/images/guides/build-noise-models/extracted-outputs/284e4fb1-726e-4ecf-a200-cbfae8baaef7-0.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/public/docs/images/guides/build-noise-models/extracted-outputs/6fe5c53d-3536-471f-aceb-b4b48a8a5889-0.svg b/public/docs/images/guides/build-noise-models/extracted-outputs/6fe5c53d-3536-471f-aceb-b4b48a8a5889-0.svg index 6944fb5d847..1cb629bf18b 100644 --- a/public/docs/images/guides/build-noise-models/extracted-outputs/6fe5c53d-3536-471f-aceb-b4b48a8a5889-0.svg +++ b/public/docs/images/guides/build-noise-models/extracted-outputs/6fe5c53d-3536-471f-aceb-b4b48a8a5889-0.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/public/docs/images/guides/build-noise-models/extracted-outputs/e38e4581-7718-4dc0-a550-e6b3168bd400-0.svg b/public/docs/images/guides/build-noise-models/extracted-outputs/e38e4581-7718-4dc0-a550-e6b3168bd400-0.svg index 333904ee131..85c40dc6575 100644 --- a/public/docs/images/guides/build-noise-models/extracted-outputs/e38e4581-7718-4dc0-a550-e6b3168bd400-0.svg +++ b/public/docs/images/guides/build-noise-models/extracted-outputs/e38e4581-7718-4dc0-a550-e6b3168bd400-0.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/public/docs/images/guides/circuit-library/extracted-outputs/9629a507-8191-409e-b895-fd0833c8fcd7-0.svg b/public/docs/images/guides/circuit-library/extracted-outputs/9629a507-8191-409e-b895-fd0833c8fcd7-0.svg index 6dcb419ab57..328e11806e3 100644 --- a/public/docs/images/guides/circuit-library/extracted-outputs/9629a507-8191-409e-b895-fd0833c8fcd7-0.svg +++ b/public/docs/images/guides/circuit-library/extracted-outputs/9629a507-8191-409e-b895-fd0833c8fcd7-0.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/public/docs/images/guides/custom-backend/extracted-outputs/1d40864a-7695-438b-95bf-7724c34d92b4-0.avif b/public/docs/images/guides/custom-backend/extracted-outputs/1d40864a-7695-438b-95bf-7724c34d92b4-0.avif index 9ce514f3d67..50268962c77 100644 Binary files a/public/docs/images/guides/custom-backend/extracted-outputs/1d40864a-7695-438b-95bf-7724c34d92b4-0.avif and b/public/docs/images/guides/custom-backend/extracted-outputs/1d40864a-7695-438b-95bf-7724c34d92b4-0.avif differ diff --git a/public/docs/images/guides/custom-backend/extracted-outputs/6dc04d04-7afb-46f2-8ee6-ac961e4583f5-1.avif b/public/docs/images/guides/custom-backend/extracted-outputs/6dc04d04-7afb-46f2-8ee6-ac961e4583f5-1.avif index af1a74c2ea5..7296e5b2233 100644 Binary files a/public/docs/images/guides/custom-backend/extracted-outputs/6dc04d04-7afb-46f2-8ee6-ac961e4583f5-1.avif and b/public/docs/images/guides/custom-backend/extracted-outputs/6dc04d04-7afb-46f2-8ee6-ac961e4583f5-1.avif differ diff --git a/public/docs/images/guides/custom-backend/extracted-outputs/b51657ed-bb37-4e1a-9dea-8189b4229d24-0.avif b/public/docs/images/guides/custom-backend/extracted-outputs/b51657ed-bb37-4e1a-9dea-8189b4229d24-0.avif index e1acdddcfee..7b2382388cd 100644 Binary files a/public/docs/images/guides/custom-backend/extracted-outputs/b51657ed-bb37-4e1a-9dea-8189b4229d24-0.avif and b/public/docs/images/guides/custom-backend/extracted-outputs/b51657ed-bb37-4e1a-9dea-8189b4229d24-0.avif differ diff --git a/public/docs/images/guides/custom-transpiler-pass/extracted-outputs/e2515cf3-f8d9-4281-9673-d5a955d7aab9-0.svg b/public/docs/images/guides/custom-transpiler-pass/extracted-outputs/e2515cf3-f8d9-4281-9673-d5a955d7aab9-0.svg index c9bad0e5a3f..6bb94478099 100644 --- a/public/docs/images/guides/custom-transpiler-pass/extracted-outputs/e2515cf3-f8d9-4281-9673-d5a955d7aab9-0.svg +++ b/public/docs/images/guides/custom-transpiler-pass/extracted-outputs/e2515cf3-f8d9-4281-9673-d5a955d7aab9-0.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/public/docs/images/guides/debug-qiskit-runtime-jobs/extracted-outputs/3ad78f41-a2f8-4381-826a-ae728e081ad6-0.svg b/public/docs/images/guides/debug-qiskit-runtime-jobs/extracted-outputs/3ad78f41-a2f8-4381-826a-ae728e081ad6-0.svg index 9082a4e7822..20384daec01 100644 --- a/public/docs/images/guides/debug-qiskit-runtime-jobs/extracted-outputs/3ad78f41-a2f8-4381-826a-ae728e081ad6-0.svg +++ b/public/docs/images/guides/debug-qiskit-runtime-jobs/extracted-outputs/3ad78f41-a2f8-4381-826a-ae728e081ad6-0.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/public/docs/images/guides/defaults-and-configuration-options/extracted-outputs/27ab746b-e3d7-49a7-b40b-d1e2d9ca6088-0.svg b/public/docs/images/guides/defaults-and-configuration-options/extracted-outputs/27ab746b-e3d7-49a7-b40b-d1e2d9ca6088-0.svg index 8d90600aec5..8a6da2cde4f 100644 --- a/public/docs/images/guides/defaults-and-configuration-options/extracted-outputs/27ab746b-e3d7-49a7-b40b-d1e2d9ca6088-0.svg +++ b/public/docs/images/guides/defaults-and-configuration-options/extracted-outputs/27ab746b-e3d7-49a7-b40b-d1e2d9ca6088-0.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/public/docs/images/guides/dynamical-decoupling-pass-manager/extracted-outputs/8228f889-806a-4873-b1da-27c9795d5f5c-0.svg b/public/docs/images/guides/dynamical-decoupling-pass-manager/extracted-outputs/8228f889-806a-4873-b1da-27c9795d5f5c-0.svg index 76bc036a5c1..10f8846c8d4 100644 --- a/public/docs/images/guides/dynamical-decoupling-pass-manager/extracted-outputs/8228f889-806a-4873-b1da-27c9795d5f5c-0.svg +++ b/public/docs/images/guides/dynamical-decoupling-pass-manager/extracted-outputs/8228f889-806a-4873-b1da-27c9795d5f5c-0.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/public/docs/images/guides/dynamical-decoupling-pass-manager/extracted-outputs/aaa27ee4-1965-41bf-abd2-1d9176af6dc4-0.svg b/public/docs/images/guides/dynamical-decoupling-pass-manager/extracted-outputs/aaa27ee4-1965-41bf-abd2-1d9176af6dc4-0.svg index f71a6381775..e2d9d2e8f3d 100644 --- a/public/docs/images/guides/dynamical-decoupling-pass-manager/extracted-outputs/aaa27ee4-1965-41bf-abd2-1d9176af6dc4-0.svg +++ b/public/docs/images/guides/dynamical-decoupling-pass-manager/extracted-outputs/aaa27ee4-1965-41bf-abd2-1d9176af6dc4-0.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/public/docs/images/guides/dynamical-decoupling-pass-manager/extracted-outputs/cb73e2c4-ab05-4f15-91ae-2fab64028d6e-0.svg b/public/docs/images/guides/dynamical-decoupling-pass-manager/extracted-outputs/cb73e2c4-ab05-4f15-91ae-2fab64028d6e-0.svg index d993f1fa270..1d98cbbc2d0 100644 --- a/public/docs/images/guides/dynamical-decoupling-pass-manager/extracted-outputs/cb73e2c4-ab05-4f15-91ae-2fab64028d6e-0.svg +++ b/public/docs/images/guides/dynamical-decoupling-pass-manager/extracted-outputs/cb73e2c4-ab05-4f15-91ae-2fab64028d6e-0.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/public/docs/images/guides/fractional-gates/extracted-outputs/08dd1cdf-8b34-47c2-8324-f3538c9d1ab6-0.svg b/public/docs/images/guides/fractional-gates/extracted-outputs/08dd1cdf-8b34-47c2-8324-f3538c9d1ab6-0.svg index 73b223e2754..06e2bd9a70d 100644 --- a/public/docs/images/guides/fractional-gates/extracted-outputs/08dd1cdf-8b34-47c2-8324-f3538c9d1ab6-0.svg +++ b/public/docs/images/guides/fractional-gates/extracted-outputs/08dd1cdf-8b34-47c2-8324-f3538c9d1ab6-0.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/public/docs/images/guides/fractional-gates/extracted-outputs/5da9bba4-9a3b-4569-9997-c5b9ccf87b6a-0.svg b/public/docs/images/guides/fractional-gates/extracted-outputs/5da9bba4-9a3b-4569-9997-c5b9ccf87b6a-0.svg index 53c0ae355af..9f7daf3c1df 100644 --- a/public/docs/images/guides/fractional-gates/extracted-outputs/5da9bba4-9a3b-4569-9997-c5b9ccf87b6a-0.svg +++ b/public/docs/images/guides/fractional-gates/extracted-outputs/5da9bba4-9a3b-4569-9997-c5b9ccf87b6a-0.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/public/docs/images/guides/fractional-gates/extracted-outputs/f07217b9-a6f0-4adf-b341-6da447535c33-0.svg b/public/docs/images/guides/fractional-gates/extracted-outputs/f07217b9-a6f0-4adf-b341-6da447535c33-0.svg index b116bfe48b2..fd31aeaed8e 100644 --- a/public/docs/images/guides/fractional-gates/extracted-outputs/f07217b9-a6f0-4adf-b341-6da447535c33-0.svg +++ b/public/docs/images/guides/fractional-gates/extracted-outputs/f07217b9-a6f0-4adf-b341-6da447535c33-0.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/public/docs/images/guides/transpile-with-pass-managers/extracted-outputs/dcc69b72-e13b-4df6-a51f-a5ef2108bae7-0.svg b/public/docs/images/guides/transpile-with-pass-managers/extracted-outputs/dcc69b72-e13b-4df6-a51f-a5ef2108bae7-0.svg index 6a3636648b1..fafbda756bc 100644 --- a/public/docs/images/guides/transpile-with-pass-managers/extracted-outputs/dcc69b72-e13b-4df6-a51f-a5ef2108bae7-0.svg +++ b/public/docs/images/guides/transpile-with-pass-managers/extracted-outputs/dcc69b72-e13b-4df6-a51f-a5ef2108bae7-0.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/public/docs/images/guides/visualize-circuits/extracted-outputs/94948dab-57de-45f0-8dd7-5901ae69b70a-0.avif b/public/docs/images/guides/visualize-circuits/extracted-outputs/94948dab-57de-45f0-8dd7-5901ae69b70a-0.avif index 14d0fc53d5f..e52e2f4a634 100644 Binary files a/public/docs/images/guides/visualize-circuits/extracted-outputs/94948dab-57de-45f0-8dd7-5901ae69b70a-0.avif and b/public/docs/images/guides/visualize-circuits/extracted-outputs/94948dab-57de-45f0-8dd7-5901ae69b70a-0.avif differ diff --git a/public/docs/images/guides/visualize-results/extracted-outputs/35e07a46-8423-44ff-abad-7c10c72291a5-2.svg b/public/docs/images/guides/visualize-results/extracted-outputs/35e07a46-8423-44ff-abad-7c10c72291a5-2.svg index 0d25c3c8c52..7524dfa40ae 100644 --- a/public/docs/images/guides/visualize-results/extracted-outputs/35e07a46-8423-44ff-abad-7c10c72291a5-2.svg +++ b/public/docs/images/guides/visualize-results/extracted-outputs/35e07a46-8423-44ff-abad-7c10c72291a5-2.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/public/docs/images/guides/visualize-results/extracted-outputs/3b41d6da-1bca-4b82-ac84-b5b811b7d430-0.svg b/public/docs/images/guides/visualize-results/extracted-outputs/3b41d6da-1bca-4b82-ac84-b5b811b7d430-0.svg index 9e91090eda5..87700013895 100644 --- a/public/docs/images/guides/visualize-results/extracted-outputs/3b41d6da-1bca-4b82-ac84-b5b811b7d430-0.svg +++ b/public/docs/images/guides/visualize-results/extracted-outputs/3b41d6da-1bca-4b82-ac84-b5b811b7d430-0.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/public/docs/images/guides/visualize-results/extracted-outputs/6f122049-0b5a-49e8-bde4-d99d91f4b77c-1.svg b/public/docs/images/guides/visualize-results/extracted-outputs/6f122049-0b5a-49e8-bde4-d99d91f4b77c-1.svg index 5dfa4913efe..a95e5b7ef77 100644 --- a/public/docs/images/guides/visualize-results/extracted-outputs/6f122049-0b5a-49e8-bde4-d99d91f4b77c-1.svg +++ b/public/docs/images/guides/visualize-results/extracted-outputs/6f122049-0b5a-49e8-bde4-d99d91f4b77c-1.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/public/docs/images/guides/visualize-results/extracted-outputs/7f456bcc-94a8-4522-9be2-77ea91045c1f-0.svg b/public/docs/images/guides/visualize-results/extracted-outputs/7f456bcc-94a8-4522-9be2-77ea91045c1f-0.svg index cb2d15a3265..6ecf45344a1 100644 --- a/public/docs/images/guides/visualize-results/extracted-outputs/7f456bcc-94a8-4522-9be2-77ea91045c1f-0.svg +++ b/public/docs/images/guides/visualize-results/extracted-outputs/7f456bcc-94a8-4522-9be2-77ea91045c1f-0.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/public/docs/images/tutorials/hello-world/extracted-outputs/87143fcc-0.svg b/public/docs/images/tutorials/hello-world/extracted-outputs/87143fcc-0.svg index 03dd617f551..ea13c5d36eb 100644 --- a/public/docs/images/tutorials/hello-world/extracted-outputs/87143fcc-0.svg +++ b/public/docs/images/tutorials/hello-world/extracted-outputs/87143fcc-0.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/public/docs/images/tutorials/hello-world/extracted-outputs/9a901271-0.svg b/public/docs/images/tutorials/hello-world/extracted-outputs/9a901271-0.svg index e95ff988639..ec3c0d3cce5 100644 --- a/public/docs/images/tutorials/hello-world/extracted-outputs/9a901271-0.svg +++ b/public/docs/images/tutorials/hello-world/extracted-outputs/9a901271-0.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/public/docs/images/tutorials/hello-world/extracted-outputs/de91ebd0-0.svg b/public/docs/images/tutorials/hello-world/extracted-outputs/de91ebd0-0.svg index 891bdef9c74..129079adcc3 100644 --- a/public/docs/images/tutorials/hello-world/extracted-outputs/de91ebd0-0.svg +++ b/public/docs/images/tutorials/hello-world/extracted-outputs/de91ebd0-0.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file