composite_factories#

A module containing factory functions for composite gates, which are replaced by schedules.

Module Contents#

Functions#

hadamard_as_y90z(...)

Generate a Schedule Y90 * Z (equivalent to a Hadamard gate).

cnot_as_h_cz_h(...)

Generate a Schedule for a CNOT gate using a CZ gate

hadamard_as_y90z(qubit: str) quantify_scheduler.schedules.schedule.Schedule[source]#

Generate a Schedule Y90 * Z (equivalent to a Hadamard gate).

Parameters:

qubit – Qubit to which the Hadamard gate is applied.

Returns:

Schedule.

cnot_as_h_cz_h(control_qubit: str, target_qubit: str) quantify_scheduler.schedules.schedule.Schedule[source]#

Generate a Schedule for a CNOT gate using a CZ gate interleaved with Hadamard gates on the target qubit.

Parameters:
  • control_qubit – Qubit acting as the control qubit.

  • target_qubit – Qubit acting as the target qubit.

Returns:

Schedule for the CNOT gate.

Return type:

Schedule