Skip to content

workbench_algorithms.subroutines.gates

Basic quantum gates implemented as Qubricks.

RzAdder

RzAdder(adder: Adder = None, **kwargs)

Bases: Qubrick

Implementation of Rz rotation using an adder-based approach.

This uses the rotation catalyst state and an adder to implement an Rz rotation on the target register.

Parameters:

Name Type Description Default
adder Qubrick

Qubrick for implementing the addition in PGA.

None
**kwargs dict[str, Any]

Extra key word arguments for the Qubrick constructor.

{}

Rz

Rz(**kwargs)

Bases: Qubrick

Implementation of a direct Rz rotation using the built-in rz method.

This provides a simple interface for rotations that wraps the native rz gate.