Skip to content

Commit

Permalink
feat: Update qcs-sdk-python, add transpile_qasm_2 method to `Abst…
Browse files Browse the repository at this point in the history
…ractCompiler`. (#1655)
  • Loading branch information
MarquessV authored Sep 15, 2023
1 parent 1775c88 commit b27f47b
Show file tree
Hide file tree
Showing 9 changed files with 96 additions and 207 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ The 4.0 release of pyQuil migrates its core functionality into Rigetti's latest
- The `JumpConditional` base class has been removed, use `JumpWhen` and/or `JumpUnless` directly instead.
- The `Program` class automatically sorts `DECLARE` instructions to the top of the Program when converting to Quil.
- `FenceAll` is now a subclass of `Fence`. This can be impactful if you are doing something like `isinstance(instruction, Fence)` since that will now match `Fence` and `FenceAll`. If the difference between the two is important, check for `FenceAll` first. You can also check if the `qubits` property is empty, which implies a `FenceAll` instruction.
- The `RawInstr` class has been removed. All Quil instructions should be supported by either parsing them with the `Program` class, or constructing them with an instruction class. If you were using `RawInstr` for QASM2.0 transpilation, use the new `transpile_qasm_2` method on `AbstractCompiler`.

### Features

Expand All @@ -54,6 +55,7 @@ installation, perform diagnostics checks, and return a summary.
- The `Include` class for `INCLUDE` instructions.
- The `DefCircuit` class `DEFCIRCUIT` instructions.
- The `Program.copy` method now performs a deep copy.
- The `AbstractCompiler` class now has a method `transpile_qasm_2` method for transpiling QASM2.0 programs to Quil.

### Deprecations

Expand Down
Loading

0 comments on commit b27f47b

Please sign in to comment.