qumat/amazon_braket_backend.py [44:56]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
def apply_swap_gate(circuit, qubit_index1, qubit_index2):
    circuit.swap(qubit_index1, qubit_index2)

def apply_pauli_x_gate(circuit, qubit_index):
    circuit.x(qubit_index)

def apply_pauli_y_gate(circuit, qubit_index):
    circuit.y(qubit_index)

def apply_pauli_z_gate(circuit, qubit_index):
    circuit.z(qubit_index)

def execute_circuit(circuit, backend, backend_config):
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



qumat/qiskit_backend.py [53:69]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
def apply_swap_gate(circuit, qubit_index1, qubit_index2):
    # Apply a SWAP gate to exchange the states of two qubits
    circuit.swap(qubit_index1, qubit_index2)

def apply_pauli_x_gate(circuit, qubit_index):
    # Apply a Pauli X gate on the specified qubit
    circuit.x(qubit_index)

def apply_pauli_y_gate(circuit, qubit_index):
    # Apply a Pauli Y gate on the specified qubit
    circuit.y(qubit_index)

def apply_pauli_z_gate(circuit, qubit_index):
    # Apply a Pauli Z gate on the specified qubit
    circuit.z(qubit_index)

def execute_circuit(circuit, backend, backend_config):
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



