qbraid.programs.QuantumProgram

class QuantumProgram(program)[source]

Abstract class for qbraid program wrapper objects.

__init__(program)[source]

Methods

__init__(program)

remove_idle_qubits()

Remove empty registers of circuit.

reverse_qubit_order()

Rerverse qubit ordering of circuit.

unitary()

Calculate unitary of circuit.

unitary_little_endian()

Converts unitary calculated using big-endian system to its equivalent form in a little-endian system.

unitary_rev_qubits()

Peforms Kronecker (tensor) product factor permutation of given matrix.

Attributes

depth

Return the circuit depth (i.e., length of critical path).

num_clbits

Return the number of classical bits in the circuit.

num_qubits

Return the number of qubits in the circuit.

package

Return the original package of the wrapped circuit.

program

Return the wrapped quantum program object.

qubits

Return the qubits acted upon by the operations in this circuit