PulseCompiler
- class PulseCompiler(gateset, backend)
Compile native circuits to pulses for a specific gate set, using a bound pulse backend.
Binds a
GateSetto an already-constructed pulse backend (e.g.SimphonyBackend(model)) and lowers native circuits into that backend’s pulse representation.- Parameters:
gateset (
GateSet) – Native gate set whose operations are lowered to pulses.backend (
Any) – Pulse backend to compile with, already bound to its device model. Must be registered (viaregister_pulse_backend()) forgateset’s type, and itsn_qubitsmust matchgateset.n_qubits.
- Raises:
ValidationError – If
gatesetis not aGateSet, orbackend’s qubit count does not matchgateset’s.BackendError – If
backend’s type is not registered forgateset’s type.
Attributes
Pulse backend bound to this compiler. |
|
Native gate set bound to this compiler. |
Methods
|
Benchmark the pulse implementation of a whole native circuit. |
|
Benchmark the pulse implementation of a single native gate. |
|
Benchmark the pulse implementation of every native gate. |
|
Compile a native circuit into a pulse sequence on the bound backend. |