From 5e7d040bdee0c0c3e98b7089a54559ddfb4ea071 Mon Sep 17 00:00:00 2001 From: "Guan Ming(Wesley) Chiu" <105915352+guan404ming@users.noreply.github.com> Date: Wed, 15 Oct 2025 16:41:36 +0800 Subject: [PATCH] Fix quantum teleportation example to use explicit Pauli gate names --- examples/quantum_teleportation.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/quantum_teleportation.py b/examples/quantum_teleportation.py index abc14075f0..653d182da9 100644 --- a/examples/quantum_teleportation.py +++ b/examples/quantum_teleportation.py @@ -46,9 +46,9 @@ # Apply X and Z gates based on the received measurement results received_measurement_results = [0, 1] # Simulated measurement results if received_measurement_results[1] == 1: - receiver_quantum_computer.apply_x_gate(2) + receiver_quantum_computer.apply_pauli_x_gate(2) if received_measurement_results[0] == 1: - receiver_quantum_computer.apply_z_gate(2) + receiver_quantum_computer.apply_pauli_z_gate(2) # The state on qubit 2 now matches the original state on qubit 0