qbraid.programs.QuantumProgram
- class QuantumProgram(program)[source]
Abstract class for qbraid program wrapper objects.
Methods
__init__
(program)get_spec
(program)Return the program spec.
unitary
()Calculate unitary of circuit.
Attributes
num_qubits
Return the number of qubits in the circuit.
program
Return the quantum program.