qandle.ansaetze.stronglyentangling_budget module
- class qandle.ansaetze.stronglyentangling_budget.StronglyEntanglingLayerBudget(num_qubits_total: int, qubits: ~typing.List[int] | None = None, param_budget: int = 1, control_gate=<class 'qandle.operators.CNOT'>, control_gate_spacing=1, rotations=['rz', 'ry'], remapping: ~typing.Callable | None = <function tanh>)[source]
Bases:
BuiltAnsatzA strongly entangling layer, inspired by this paper. Consists of a series of single-qubit rotations on each qubit specified in the
qubitsparameter, followed by a series of control gates. Instead of specifying a depth, aparam_budgetis specified, which determines the number of parameters in the circuit. The control gates are inserted everycontrol_gate_spacinglayers, quickly allowing to change the entanglement structure of the circuit.- to_qasm() QasmRepresentation[source]
Returns the OpenQASM2 representation of the operator.