|
| | all_states = sorted(set(ideal_counts.keys()) | set(noisy_counts.keys())) |
| |
| | ax1 = axes[0] |
| |
| | ax2 = axes[1] |
| |
| | axes |
| |
| | axis |
| |
| | color |
| |
| | dpi |
| |
| | fig |
| |
| | figsize |
| |
| | fontsize |
| |
| int | gate_time_1q = 50 |
| |
| int | gate_time_2q = 300 |
| |
| | ideal_counts = ideal_result.get_counts() |
| |
| | ideal_result = ideal_simulator.run(transpiled_ideal, shots=shots).result() |
| |
| | ideal_simulator = AerSimulator() |
| |
| list | ideal_values = [ideal_counts.get(s, 0) for s in states] |
| |
| | key |
| |
| | noise_model = NoiseModel() |
| |
| | noisy_counts = noisy_result.get_counts() |
| |
| | noisy_result = noisy_simulator.run(transpiled_noisy, shots=shots).result() |
| |
| | noisy_simulator = AerSimulator(noise_model=noise_model) |
| |
| list | noisy_values = [noisy_counts.get(s, 0) for s in all_states] |
| |
| | qc = QuantumCircuit(3, 3) |
| |
| | rotation |
| |
| int | shots = 4096 |
| |
| | single_qubit_error = depolarizing_error(single_qubit_error_rate, 1) |
| |
| float | single_qubit_error_rate = 0.01 |
| |
| | states = sorted(ideal_counts.keys()) |
| |
| int | t1 = 50e3 |
| |
| int | t2 = 30e3 |
| |
| | thermal_error_1q = thermal_relaxation_error(t1, t2, gate_time_1q) |
| |
| | thermal_error_2q |
| |
| | transpiled_ideal = transpile(qc, ideal_simulator) |
| |
| | transpiled_noisy = transpile(qc, noisy_simulator) |
| |
| | two_qubit_error = depolarizing_error(two_qubit_error_rate, 2) |
| |
| float | two_qubit_error_rate = 0.05 |
| |