qp.io

Overview

This module contains functions and classes for translating quantum objects from external frameworks into PennyLane circuits and operators.

Functions

from_qasm(quantum_circuit[, measurements])

Loads quantum circuits from a QASM string using the converter in the PennyLane-Qiskit plugin.

from_qasm3(quantum_circuit[, wire_map])

Converts an OpenQASM 3.0 circuit into a quantum function that can be used within a QNode.

from_qiskit(quantum_circuit[, measurements])

Converts a Qiskit QuantumCircuit into a PennyLane quantum function.

from_qiskit_noise(noise_model[, verbose, ...])

Converts a Qiskit NoiseModel into a PennyLane NoiseModel.

from_qiskit_op(qiskit_op[, params, wires])

Converts a Qiskit SparsePauliOp into a PennyLane Operator.

to_openqasm(circuit[, wires, rotations, ...])

Convert a circuit to an OpenQASM 2.0 program.