qbraid.transpiler.BraketCircuitWrapper

class BraketCircuitWrapper(circuit)[source]

Wrapper class for Amazon Braket Circuit objects.

Create a BraketCircuitWrapper

Parameters

circuit (Circuit) – the circuit object to be wrapped

__init__(circuit)[source]

Create a BraketCircuitWrapper

Parameters

circuit (Circuit) – the circuit object to be wrapped

Methods

__init__(circuit)

Create a BraketCircuitWrapper

draw([package, output])

draw circuit

transpile(conversion_type)

Transpile a qbraid quantum program wrapper object to quantum program object of type specified by conversion_type.

Attributes

depth

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

input_param_mapping

Return the input parameter mapping.

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.

params

Return the circuit parameters.

program

Return the underlying quantum program that has been wrapped.

qubits

Return the qubits acted upon by the operations in this circuit