qandle.ansaetze.specialunitary module
- class qandle.ansaetze.specialunitary.SpecialUnitary(qubits: List[int] | None = None, reps: int = 1, rotations=['ry'])[source]
- Bases: - UnbuiltAnsatz- The hardware efficient SU(2) 2-local circuit as described in the Qiskit docs. - build(*args, **kwargs) BuiltAnsatz[source]
- Builds the operator, i.e. converts it to a torch.nn.Module. 
 - to_qasm() QasmRepresentation[source]
- Returns the OpenQASM2 representation of the operator.