Граф коммитов

201 Коммитов

Автор SHA1 Сообщение Дата
Andres Paz b960a650f7 Qiskit sample notebook 2021-12-02 20:49:23 -08:00
Jonathan Daniel b850d9da11
Do not require a specific minor of `qiskit`
Only major 0
2021-11-24 13:48:24 +02:00
Jonathan Daniel 92c21cb935
Accept dicts in display without `qiskit` 2021-11-23 18:11:07 +02:00
Jonathan Daniel f1427106c4
Accept qviz dicts in display
Co-authored-by: Guen Prawiroatmodjo <guenp@microsoft.com>
2021-11-23 18:03:49 +02:00
Jonathan Daniel 9a15bb641d
Use `TYPE_CHECKING ` in `utils.py`
Co-authored-by: Guen Prawiroatmodjo <guenp@microsoft.com>
2021-11-23 18:02:37 +02:00
Jonathan Daniel 4cc82d31d5
Install `qiskit` extras in nox typeguard sessions 2021-11-23 11:22:23 +02:00
Jonathan Daniel 1690457302
Install `qiskit` extras in nox tests session 2021-11-23 11:11:46 +02:00
Jonathan Daniel fd1e7d564a
Fix the `qiskit` extras in `pyproject.toml` 2021-11-23 10:43:40 +02:00
Jonathan Daniel 25f4d149c7
Merge branch 'main' into feature/qiskit 2021-11-19 13:44:55 +02:00
Guen Prawiroatmodjo 9e824c244e lower to 90% coverage requirement 2021-11-19 13:43:20 +02:00
Guen Prawiroatmodjo ea68d331da pre commit changes 2021-11-19 13:43:20 +02:00
Guen Prawiroatmodjo 9a9e77ed98 pre-commit changes 2021-11-19 13:43:20 +02:00
Guen Prawiroatmodjo 68b85d6ebc refactor tests 2021-11-19 13:43:20 +02:00
Guen Prawiroatmodjo 88ca08e728 add display example script 2021-11-19 13:43:20 +02:00
Guen Prawiroatmodjo cf8182a276 rename conftest.py to test_qiskit_gen_results, use fixtures 2021-11-19 13:43:20 +02:00
Guen Prawiroatmodjo aeb7978b41 change package name to fix typeguard issue 2021-11-19 13:43:20 +02:00
Guen Prawiroatmodjo a4596bc221 add dispatch trigger for workflow 2021-11-19 13:43:20 +02:00
Guen Prawiroatmodjo 187f48f2a4 add qiskit dependency 2021-11-19 13:43:20 +02:00
Guen Prawiroatmodjo bed20253f6
add dispatch trigger for workflow (#46) 2021-11-16 21:39:56 -08:00
Jonathan Daniel 862f05b39b Poetry update 2021-11-09 19:07:03 +02:00
Jonathan Daniel 03863e9744 Add `qiskit-terra` as a dev-dependency and "qiskit" extras
`poetry add -D -E qiskit qiskit-terra`
2021-11-09 19:06:49 +02:00
Jonathan Daniel b48b751498 Lint 2021-11-09 18:52:14 +02:00
Jonathan Daniel fb00b5726b Add pre-commit changes
`pre-commit run --all-files`
2021-11-04 17:59:12 +02:00
Jonathan Daniel 36de176760 Remove tested parts from utils 2021-11-04 15:51:16 +02:00
Jonathan Daniel b56e04c886 Add more tests 2021-11-04 15:51:16 +02:00
Jonathan Daniel 1d28c6eaf9 Remove a comment about parameter expression
https://qiskit.org/documentation/stubs/qiskit.circuit.ParameterExpression.html :
> Not intended to be called directly, but to be instantiated via operations on other Parameter or ParameterExpression objects.
2021-11-04 15:51:16 +02:00
Jonathan Daniel 78c542b2a8 Rename `_param_formatter` to `_format_param` 2021-11-04 15:51:16 +02:00
Jonathan Daniel 229c91d829 Use the value of `ConditionalRender` enums 2021-11-04 15:51:16 +02:00
Jonathan Daniel 47276b6102 Add tests for empty circuits 2021-11-04 15:51:16 +02:00
Jonathan Daniel 66b0d3494a Store `q_id` and not `qubit` in `_clbit2id` 2021-11-04 15:51:16 +02:00
Jonathan Daniel a57bb34a95 Comment about `_update_condition` position 2021-11-04 15:51:16 +02:00
Jonathan Daniel 8361719d3a Remove the `_remove_empty_children` method 2021-11-04 15:51:16 +02:00
Jonathan Daniel 578e280463 Define the instruction type names in a single dictionary 2021-11-04 15:51:16 +02:00
Jonathan Daniel d4750b52e8 Add noqa to `import qiskit`
Check first that `qiskit` is available before importing
sub-packages.
2021-11-04 15:51:16 +02:00
Jonathan Daniel fb76c8b3c4 Minimize the access to `op_dict["gate"]` in `_rename_gate` 2021-11-04 15:51:16 +02:00
Jonathan Daniel 9ddb4f5cb6 Change depth to recursion depth 2021-11-04 15:51:16 +02:00
Jonathan Daniel fa4511ea15 Rename `_check_children` to `_remove_empty_children` 2021-11-04 15:51:16 +02:00
Jonathan Daniel 802deccd6f Use `get` instead of using the "children" key directly 2021-11-04 15:51:16 +02:00
Jonathan Daniel e110e88929 Add a todo about ParameterExpression 2021-11-04 15:51:16 +02:00
Jonathan Daniel b04cdcfdfc Use qubits property 2021-11-04 15:51:16 +02:00
Jonathan Daniel 7e1726bcf9 Format complex params the same way as floats 2021-11-04 15:51:16 +02:00
Jonathan Daniel deef2bba6a Remove the unused operations property deleter 2021-11-04 15:51:16 +02:00
Jonathan Daniel 19b603edbc Use `QuantumCircuit` without the `qiskit.` prefix
This class was explicitly imported
2021-11-04 15:51:16 +02:00
Jonathan Daniel 4ab5266d74 Support symbolic params 2021-11-04 15:51:16 +02:00
Jonathan Daniel a5874c475f Remove children key if empty
Support empty circuits and instructions -
for example, contains only barriers and
`skip_barriers` is `True`
2021-11-04 15:51:16 +02:00
Jonathan Daniel 3d04956e1e Add operations property to parser 2021-11-04 15:51:16 +02:00
Jonathan Daniel 9c70bd9b1b Make all the parser's methods private 2021-11-04 15:51:16 +02:00
Jonathan Daniel 581a4d9aaf Remove a resolved todo - stay with the top circuit
Instead of converting it into an instruction
2021-11-04 15:51:16 +02:00
Jonathan Daniel 40066d0bd9 Add some todo comments to parser 2021-11-04 15:51:16 +02:00
Jonathan Daniel a060bbce9b Add filename, style, and version args to display function 2021-11-04 15:51:16 +02:00