View source on GitHub |
A type definition for cirq.Circuit
to pyquil.Program
transformer functions.
cirq_rigetti.circuit_transformers.CircuitTransformer(
*args, **kwargs
)
Methods
__call__
__call__(
*, circuit: cirq.Circuit
) -> Tuple[Program, Dict[str, str]]
Transforms a cirq.Circuit
to a pyquil.Program`.
Args | |
---|---|
circuit
|
The cirq.Circuit the transformer will transform into a pyquil.Program .
|
Returns | |
---|---|
The pyquil.Program and a map of the cirq.Circuit 's memory region keys to
the pyquil.Program 's memory regions.
|