repo
stringclasses
32 values
instance_id
stringlengths
13
37
base_commit
stringlengths
40
40
patch
stringlengths
1
1.89M
test_patch
stringclasses
1 value
problem_statement
stringlengths
304
69k
hints_text
stringlengths
0
246k
created_at
stringlengths
20
20
version
stringclasses
1 value
FAIL_TO_PASS
stringclasses
1 value
PASS_TO_PASS
stringclasses
1 value
environment_setup_commit
stringclasses
1 value
traceback
stringlengths
64
23.4k
__index_level_0__
int64
29
19k
DataDog/integrations-core
DataDog__integrations-core-446
0b9be7366a08b2fa1b83c036d823d8848762770f
diff --git a/postgres/check.py b/postgres/check.py --- a/postgres/check.py +++ b/postgres/check.py @@ -651,14 +651,17 @@ def _get_custom_metrics(self, custom_metrics, key): self.log.debug("Metric: {0}".format(m)) - for ref, (_, mtype) in m['metrics'].iteritems(): - cap_mtype =...
[postgres] Improve config reading errors I had this `postgres.yaml`: ``` init_config: instances: - host: pepepe ... custom_metrics: - query: SELECT %s FROM pg_locks WHERE granted = false; metrics: count(distinct pid): [postgresql.connections_locked] descriptors: [] ...
Thanks a lot for this report @mausch! We can't validate the config in a consistent manner, which makes something like this tricky to make the error better. We will work on making this a lot better in the future. However, what we can do in the very near future is make the documentation both online and in the confi...
2017-05-29T13:10:25Z
[]
[]
Traceback (most recent call last): File "/opt/datadog-agent/agent/checks/__init__.py", line 745, in run self.check(copy.deepcopy(instance)) File "/opt/datadog-agent/agent/checks.d/postgres.py", line 606, in check custom_metrics = self._get_custom_metrics(instance.get('custom_metrics', []), key) File...
29
DataDog/integrations-core
DataDog__integrations-core-5659
3b850d826a2f245e9dcc8a1d87d5e2343123882e
diff --git a/datadog_checks_base/datadog_checks/base/checks/win/wmi/__init__.py b/datadog_checks_base/datadog_checks/base/checks/win/wmi/__init__.py --- a/datadog_checks_base/datadog_checks/base/checks/win/wmi/__init__.py +++ b/datadog_checks_base/datadog_checks/base/checks/win/wmi/__init__.py @@ -114,14 +114,15 @@ def...
WMI integration throws Exception: SWbemLocator Not enough storage is available to process this command ```text =============== Agent (v7.16.0) =============== Status date: 2020-02-05 15:56:45.740020 GMT Agent start: 2020-02-05 15:03:08.601503 GMT Pid: 25188 Go Version: go1.12.9 Python Version: 3.7...
2020-02-06T12:16:14Z
[]
[]
Traceback (most recent call last): File "C:\Program Files\Datadog\Datadog Agent\embedded3\lib\site-packages\datadog_checks\base\checks\win\wmi\sampler.py", line 464, in _query raw_results = self.get_connection().ExecQuery(wql, "WQL", query_flags) File "C:\Program Files\Datadog\Datadog Agent\embedded3\lib\si...
36
DataDog/integrations-core
DataDog__integrations-core-9857
8006a053c108af2cf1988efe23db8f58df8262dc
diff --git a/mongo/datadog_checks/mongo/collectors/custom_queries.py b/mongo/datadog_checks/mongo/collectors/custom_queries.py --- a/mongo/datadog_checks/mongo/collectors/custom_queries.py +++ b/mongo/datadog_checks/mongo/collectors/custom_queries.py @@ -56,8 +56,10 @@ def _collect_custom_metrics_for_query(self, api, r...
MongoDB: Collection-agnostic aggregations like $currentOp doesn't work Agent 7.29.1, running on Ubuntu Linux 18.04. **Steps to reproduce the issue:** Add the following configuration to `/etc/datadog-agent/conf.d/mongo.d/conf.yaml` and restart the agent: ``` custom_queries: - metric_prefix: mongodb.cust...
Hey @atodd-circleci Acknowledging the limitation, I'm able to reproduce. I'm thinking we should be able to work around that by putting `$cmd.aggregate` instead of "1" as the collection name here: https://github.com/DataDog/integrations-core/blob/master/mongo/datadog_checks/mongo/collectors/custom_queries.py#L113 but...
2021-08-05T15:17:59Z
[]
[]
Traceback (most recent call last): 2021-07-22 06:44:38 UTC | CORE | WARN | (pkg/collector/python/datadog_agent.go:122 in LogMessage) | mongo:375a6f2e54dabf11 | (custom_queries.py:153) | Errors while collecting custom metrics with prefix mongodb.custom.queries_slower_than_60sec TypeError: name must be an instance of ...
58
Lightning-AI/lightning
Lightning-AI__lightning-1360
ebd9fc9530242e1c9b5f3093dc62ceb4185735b0
diff --git a/pytorch_lightning/loggers/wandb.py b/pytorch_lightning/loggers/wandb.py --- a/pytorch_lightning/loggers/wandb.py +++ b/pytorch_lightning/loggers/wandb.py @@ -65,10 +65,11 @@ def __init__(self, name: Optional[str] = None, save_dir: Optional[str] = None, def __getstate__(self): state = self._...
WandbLogger cannot be used with 'ddp' <!-- ### Common bugs: 1. Tensorboard not showing in Jupyter-notebook see [issue 79](https://github.com/PyTorchLightning/pytorch-lightning/issues/79). 2. PyTorch 1.1.0 vs 1.2.0 support [see FAQ](https://github.com/PyTorchLightning/pytorch-lightning#faq) --> ## 🐛 Bug...
Hi! thanks for your contribution!, great first issue! Some hacky solutions: calling `reinit=True` for wandb, adding or this terrible hack: ```python def init_ddp_connection(self, *args, **kwargs): super().init_ddp_connection(*args, **kwargs) if torch.distributed.get_rank() == 0: import wandb ...
2020-04-03T13:32:07Z
[]
[]
Traceback (most recent call last): File "/home/rmrao/anaconda3/lib/python3.6/site-packages/torch/multiprocessing/spawn.py", line 19, in _wrap fn(i, *args) File "/home/rmrao/anaconda3/lib/python3.6/site-packages/pytorch_lightning/trainer/distrib_data_parallel.py", line 331, in ddp_train self.run_pretrai...
104
Lightning-AI/lightning
Lightning-AI__lightning-1377
b8ff9bc1d242a18f5e7147f34d63f43fcdd0e50a
diff --git a/pytorch_lightning/loggers/tensorboard.py b/pytorch_lightning/loggers/tensorboard.py --- a/pytorch_lightning/loggers/tensorboard.py +++ b/pytorch_lightning/loggers/tensorboard.py @@ -9,6 +9,7 @@ from torch.utils.tensorboard import SummaryWriter from pytorch_lightning.loggers.base import LightningLoggerB...
Tensorboard logger error: lightning_logs directory not exists in multi-node DDP on nodes with rank != 0 ## 🐛 Bug In multi-node DDP train mode on all nodes except rank 0 errors appears at the start of the training caused by accessing lightning_logs directory in tensorboard logger which is not exist at the moment. ...
2020-04-04T16:35:26Z
[]
[]
Traceback (most recent call last): File "/home/ubuntu/anaconda3/envs/nightly_pt/lib/python3.6/site-packages/torch/multiprocessing/spawn.py", line 19, in _wrap fn(i, *args) File "/home/ubuntu/anaconda3/envs/nightly_pt/lib/python3.6/site-packages/pytorch_lightning/trainer/distrib_data_parallel.py", line 342, ...
105
Lightning-AI/lightning
Lightning-AI__lightning-1385
4ed3027309fe1882554e9b7ffe33f1aa92c88106
diff --git a/pytorch_lightning/trainer/distrib_data_parallel.py b/pytorch_lightning/trainer/distrib_data_parallel.py --- a/pytorch_lightning/trainer/distrib_data_parallel.py +++ b/pytorch_lightning/trainer/distrib_data_parallel.py @@ -363,15 +363,19 @@ def load_spawn_weights(self, original_model): :param model...
Trainer DDP should invoke load_spawn_weights() only in proc_rank == 0 ## 🐛 Bug Trainer DDP load_spawn_weights should happen only in proc_rank == 0 since only in this process (node) `save_spawn_weights` actually saves checkpoint ### To Reproduce Steps to reproduce the behavior: 1. setup two-node cluster. ...
2020-04-05T23:51:47Z
[]
[]
Traceback (most recent call last): File "app.py", line 166, in <module> main_() # pylint: disable=no-value-for-parameter File "app.py", line 162, in main_ trainer.fit(model) File "/home/ubuntu/anaconda3/envs/nightly_pt/lib/python3.7/site-packages/pytorch_lightning/trainer/trainer.py", line 593, in ...
107
Lightning-AI/lightning
Lightning-AI__lightning-1423
3f1e4b953f84ecdac7dada0c6b57d908efc9c3d3
diff --git a/pytorch_lightning/trainer/distrib_parts.py b/pytorch_lightning/trainer/distrib_parts.py --- a/pytorch_lightning/trainer/distrib_parts.py +++ b/pytorch_lightning/trainer/distrib_parts.py @@ -566,7 +566,7 @@ def check_gpus_data_type(gpus): :return: return unmodified gpus variable """ - if gpus...
Use isinstance() instead of type() in trainer.distrib_parts.check_gpus_data_type <!-- ### Common bugs: 1. Tensorboard not showing in Jupyter-notebook see [issue 79](https://github.com/PyTorchLightning/pytorch-lightning/issues/79). 2. PyTorch 1.1.0 vs 1.2.0 support [see FAQ](https://github.com/PyTorchLightning/p...
Hi! thanks for your contribution!, great first issue! I do like this shift from `type` to an `isinstance` which extend accepted types also to child... as always a good PR is always welcome cc: @PyTorchLightning/core-contributors @jeremyjordan
2020-04-09T09:44:35Z
[]
[]
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/opt/anaconda/miniconda3/envs/ai/lib/python3.7/site-packages/pytorch_lightning/trainer/trainer.py", line 366, in __init__ self.data_parallel_device_ids = parse_gpu_ids(self.gpus) File "/opt/anaconda/miniconda3/envs/ai/lib/python...
111
Lightning-AI/lightning
Lightning-AI__lightning-1513
9b31272cf0f3079a244944096b4a81eec20fe555
diff --git a/pytorch_lightning/trainer/data_loading.py b/pytorch_lightning/trainer/data_loading.py --- a/pytorch_lightning/trainer/data_loading.py +++ b/pytorch_lightning/trainer/data_loading.py @@ -61,6 +61,7 @@ class TrainerDataLoadingMixin(ABC): train_percent_check: float val_percent_check: float test...
0.7.3 breaks reusable dataloaders in DDP ## 🐛 Bug 0.7.3 breaks reusable dataloaders in DDP ``` Traceback (most recent call last): File "/opt/conda/lib/python3.6/site-packages/torch/multiprocessing/spawn.py", line 19, in _wrap fn(i, *args) File "/opt/conda/lib/python3.6/site-packages/pytorch_lightning...
ummm yeah. we should change the dataloader swap with swapping a dataloader init from the class or not swipe the dataloder at all but set the correct sampler. @justusschock any ideas? This is a mixture of #1425 and #1346 And I don't think we can prevent this when we want to set correct samplers also in subclass...
2020-04-17T07:59:07Z
[]
[]
Traceback (most recent call last): File "/opt/conda/lib/python3.6/site-packages/torch/multiprocessing/spawn.py", line 19, in _wrap fn(i, *args) File "/opt/conda/lib/python3.6/site-packages/pytorch_lightning/trainer/distrib_data_parallel.py", line 345, in ddp_train self.run_pretrain_routine(model) Fi...
128
Lightning-AI/lightning
Lightning-AI__lightning-1582
5ab5084f7b9e137c1e7769228aaed8da92eaad6e
diff --git a/pytorch_lightning/loggers/base.py b/pytorch_lightning/loggers/base.py --- a/pytorch_lightning/loggers/base.py +++ b/pytorch_lightning/loggers/base.py @@ -280,6 +280,7 @@ class LoggerCollection(LightningLoggerBase): Args: logger_iterable: An iterable collection of loggers """ + def _...
After update from 0.5.x to 0.7.3 merge_dicts #1278 sometimes breaks training ## 🐛 Bug After I updated from a quite old lightning version to the newest one, I sometimes get a TypeError from merge_dicts. I guess it's related to this MR #1278 . This Type error is deterministic, meaning it always occurs at the same glo...
Did you passed any 'agg_key_funcs' to the logger class? If I understand the code correctly, by default np.mean is used to aggregate the dict values returned during training. Maybe numpy tries in the mean function to *add* (+ func) values which can't be summed up? Can you maybe post the code snippets where you return...
2020-04-23T20:27:40Z
[]
[]
Traceback (most recent call last):████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 9/9 [00:00<00:00, 8.76it/s] File "/home/sebastian/.pyenv/versions/3.7.7/lib/python3.7/multiprocessing/util.py", line 277, in _run_finalizer...
140
Lightning-AI/lightning
Lightning-AI__lightning-1589
79196246cfcc73391de1be71bfb27d4366daf75a
diff --git a/pytorch_lightning/trainer/distrib_parts.py b/pytorch_lightning/trainer/distrib_parts.py --- a/pytorch_lightning/trainer/distrib_parts.py +++ b/pytorch_lightning/trainer/distrib_parts.py @@ -461,10 +461,15 @@ def __transfer_data_to_device(self, batch, device, gpu_id=None): # when tuple i...
Named converted to regular tuples when sent to the gpu. <!-- ### Common bugs: 1. Tensorboard not showing in Jupyter-notebook see [issue 79](https://github.com/PyTorchLightning/pytorch-lightning/issues/79). 2. PyTorch 1.1.0 vs 1.2.0 support [see FAQ](https://github.com/PyTorchLightning/pytorch-lightning#faq) ...
2020-04-24T03:49:56Z
[]
[]
Traceback (most recent call last): File "demo.py", line 48, in <module> pl.Trainer(max_epochs=20, gpus=1).fit(module) File "/home/n/repos/pytorch-lightning/pytorch_lightning/trainer/trainer.py", line 749, in fit self.single_gpu_train(model) File "/home/n/repos/pytorch-lightning/pytorch_lightning/tra...
141
Lightning-AI/lightning
Lightning-AI__lightning-2014
8b9b923ca8ad9fdb0ae22928de0029e7c2e7a782
diff --git a/pl_examples/domain_templates/computer_vision_fine_tuning.py b/pl_examples/domain_templates/computer_vision_fine_tuning.py --- a/pl_examples/domain_templates/computer_vision_fine_tuning.py +++ b/pl_examples/domain_templates/computer_vision_fine_tuning.py @@ -450,5 +450,4 @@ def get_args() -> argparse.Namesp...
Bug in GAN example Bug in https://github.com/PyTorchLightning/pytorch-lightning/blob/master/pl_examples/domain_templates/generative_adversarial_net.py When I run `python generative_adversarial_net.py ` I get ``` Traceback (most recent call last): File "generative_adversarial_net.py", line 218, in <module> ...
Replace with `model = GAN(**vars(hparams))` [here](https://github.com/PyTorchLightning/pytorch-lightning/blob/fdbbe968256f6c68a5dbb840a2004b77a618ef61/pl_examples/domain_templates/generative_adversarial_net.py#L192). Same bug in [imagenet script](https://github.com/PyTorchLightning/pytorch-lightning/blob/fdbbe968256f6c...
2020-05-30T12:26:09Z
[]
[]
Traceback (most recent call last): File "generative_adversarial_net.py", line 218, in <module> main(hparams) File "generative_adversarial_net.py", line 192, in main model = GAN(hparams) File "generative_adversarial_net.py", line 90, in __init__ self.generator = Generator(latent_dim=self.latent_...
177
Lightning-AI/lightning
Lightning-AI__lightning-2115
0bd7780adc4d68007946cf380a6a24e1a08d99d1
diff --git a/pytorch_lightning/trainer/data_loading.py b/pytorch_lightning/trainer/data_loading.py --- a/pytorch_lightning/trainer/data_loading.py +++ b/pytorch_lightning/trainer/data_loading.py @@ -139,6 +139,7 @@ def _get_distributed_sampler(self, dataloader): else: world_size = { ...
verify ddp and ddp_spawn implementation CUDA error: an illegal memory access was encountered after updating to the latest stable packages Can anyone help with this CUDA error: an illegal memory access was encountered ?? It runs fine for several iterations... ## 🐛 Bug ``` Traceback (most recent call last): ...
2020-06-08T15:37:16Z
[]
[]
Traceback (most recent call last): File "train_gpu.py", line 237, in <module> main_local(hparam_trial) File "train_gpu.py", line 141, in main_local trainer.fit(model) File "/shared/storage/cs/staffstore/username/anaconda3/envs/sh1/lib/python3.7/site-packages/pytorch_lightning/trainer/trainer.py",...
188
Lightning-AI/lightning
Lightning-AI__lightning-2216
e780072961562ab1d89bad871918fcc422ad0ac6
diff --git a/pytorch_lightning/loggers/base.py b/pytorch_lightning/loggers/base.py --- a/pytorch_lightning/loggers/base.py +++ b/pytorch_lightning/loggers/base.py @@ -3,13 +3,11 @@ import operator from abc import ABC, abstractmethod from argparse import Namespace -from typing import Union, Optional, Dict, Iterable, ...
Hydra MLFlow Clash <!-- ### Common bugs: 1. Tensorboard not showing in Jupyter-notebook see [issue 79](https://github.com/PyTorchLightning/pytorch-lightning/issues/79). 2. PyTorch 1.1.0 vs 1.2.0 support [see FAQ](https://github.com/PyTorchLightning/pytorch-lightning#faq) --> ## 🐛 Bug When using the ...
Hi! thanks for your contribution!, great first issue! > Check whether the instance if `dict` or `DictConfig` in the given line. @ssakhavi that sounds reasonable solution, mind sending a PR - fix and its test?
2020-06-17T03:24:11Z
[]
[]
Traceback (most recent call last): File "/home/siavash/KroniKare/kwae2/kwae_ma/models/pl_train_segmentation_model.py", line 115, in <module> main() File "/home/siavash/anaconda3/envs/kwae-ma/lib/python3.7/site-packages/hydra/main.py", line 24, in decorated_main strict=strict, File "/home/siavash/ana...
201
Lightning-AI/lightning
Lightning-AI__lightning-2255
b5a2f1ec4463064394dc6d977ffd246aa11158af
diff --git a/pl_examples/basic_examples/gpu_template.py b/pl_examples/basic_examples/gpu_template.py --- a/pl_examples/basic_examples/gpu_template.py +++ b/pl_examples/basic_examples/gpu_template.py @@ -23,7 +23,7 @@ def main(hparams): # ------------------------ # 1 INIT LIGHTNING MODEL # ---------------...
CPU/GPU Template ## 🐛 Bug The GPU or CPU template do not run currently on master after changes including the setup hook. ``` python -m pl_examples.basic_examples.gpu_template --gpus 4 --distributed_backend ddp python -m pl_examples.basic_examples.cpu_template ``` CPU Template Error: ``` Traceback (m...
try again? > try again? it is in master now... :(
2020-06-19T02:43:10Z
[]
[]
Traceback (most recent call last): File "/usr/lib/python3.6/runpy.py", line 193, in _run_module_as_main "__main__", mod_spec) File "/usr/lib/python3.6/runpy.py", line 85, in _run_code exec(code, run_globals) File "/home/anthony/Downloads/pytorch-lightning/pl_examples/basic_examples/cpu_template.py",...
209
Lightning-AI/lightning
Lightning-AI__lightning-2293
3256fe4e5a405db1ab00d4cf4d48cbbfc7730959
diff --git a/pytorch_lightning/trainer/data_loading.py b/pytorch_lightning/trainer/data_loading.py --- a/pytorch_lightning/trainer/data_loading.py +++ b/pytorch_lightning/trainer/data_loading.py @@ -52,6 +52,8 @@ def _has_len(dataloader: DataLoader) -> bool: return True except TypeError: return F...
_has_len does not handle NotImplementedError (raised by torchtext) <!-- ### Common bugs: 1. Tensorboard not showing in Jupyter-notebook see [issue 79](https://github.com/PyTorchLightning/pytorch-lightning/issues/79). 2. PyTorch 1.1.0 vs 1.2.0 support [see FAQ](https://github.com/PyTorchLightning/pytorch-lightni...
2020-06-19T23:57:59Z
[]
[]
Traceback (most recent call last): File "/Users/thomas/scm/OakDataPrep/oakSkipThoughtTrainer.py", line 18, in <module> trainer.fit(model) File "/Users/thomas/virtualenv/Python3/PyTorch/env/lib/python3.7/site-packages/pytorch_lightning/trainer/trainer.py", line 952, in fit self.run_pretrain_routine(mode...
213
Lightning-AI/lightning
Lightning-AI__lightning-2356
220bb6db57e7181e857a128e245ce242b6cf429f
diff --git a/pytorch_lightning/trainer/optimizers.py b/pytorch_lightning/trainer/optimizers.py --- a/pytorch_lightning/trainer/optimizers.py +++ b/pytorch_lightning/trainer/optimizers.py @@ -111,15 +111,25 @@ def configure_schedulers(self, schedulers: list): def reinit_scheduler_properties(self, optimizers: list, ...
Trainer(precision=16) fails with optim.lr_scheduler.ReduceLROnPlateau <!-- ### Common bugs: 1. Tensorboard not showing in Jupyter-notebook see [issue 79](https://github.com/PyTorchLightning/pytorch-lightning/issues/79). 2. PyTorch 1.1.0 vs 1.2.0 support [see FAQ](https://github.com/PyTorchLightning/pytorch-ligh...
Hi! thanks for your contribution!, great first issue! @naokishibuya good catch. It seems like a problem that should be solved upstream in pytorch, but for now we can solve this locally. Would you be up for a PR? When I tried this fix, it solved the error but unfortunately `ReduceLROnPlateau` stopped working for me (i.e...
2020-06-25T02:42:06Z
[]
[]
Traceback (most recent call last): File "main.py", line 65, in <module> main() ...
219
Lightning-AI/lightning
Lightning-AI__lightning-2358
a5f45787eabddfec4559983f8e6ba1c8317f62f1
diff --git a/pl_examples/basic_examples/gpu_template.py b/pl_examples/basic_examples/gpu_template.py --- a/pl_examples/basic_examples/gpu_template.py +++ b/pl_examples/basic_examples/gpu_template.py @@ -61,7 +61,8 @@ def main(hparams): '--distributed_backend', type=str, default='dp', - ...
accuracy metric dosen't support windows ## 🐛 Bug Pytorch Metric.Accuracy uses `ReduceOp` from 'torch.distribution' but torch.distributrion doesn't support `windows` - https://github.com/pytorch/pytorch/blob/cf8a9b50cacb1702f5855859c657a5358976437b/torch/distributed/__init__.py#L10 : `torch.distributed is availabl...
2020-06-25T07:51:08Z
[]
[]
Traceback (most recent call last): File "test.py", line 11, in <module> from pytorch_lightning.metrics.functional import accuracy File "C:\Users\dcho\Anaconda3\envs\torch_py36\lib\site-packages\pytorch_lightning\metrics\__init__.py", line 1, in <module> from pytorch_lightning.metrics.converters import ...
220
Lightning-AI/lightning
Lightning-AI__lightning-2360
f2710bb500be017d48ccc6cf596bbed6cc9bdad5
diff --git a/pytorch_lightning/trainer/trainer.py b/pytorch_lightning/trainer/trainer.py --- a/pytorch_lightning/trainer/trainer.py +++ b/pytorch_lightning/trainer/trainer.py @@ -1193,7 +1193,8 @@ def test( self.teardown('test') if self.is_function_implemented('teardown'): - self.model.te...
AttributeError: 'LightningDataParallel' object has no attribute 'teardown' <!-- ### Common bugs: 1. Tensorboard not showing in Jupyter-notebook see [issue 79](https://github.com/PyTorchLightning/pytorch-lightning/issues/79). 2. PyTorch 1.1.0 vs 1.2.0 support [see FAQ](https://github.com/PyTorchLightning/pytorch...
Hi! thanks for your contribution!, great first issue! +1 on this issue. Also confirm this issue.
2020-06-25T14:11:42Z
[]
[]
Traceback (most recent call last): File "run_kitti.py", line 351, in <module> trainer.test(model) File "/opt/conda/lib/python3.7/site-packages/pytorch_lightning/trainer/trainer.py", line 1198, in test self.model.teardown('test') File "/opt/conda/lib/python3.7/site-packages/torch/nn/modules/module.py...
221
Lightning-AI/lightning
Lightning-AI__lightning-2428
a75398530c3447ecf13f043a1bc817929b90fd65
diff --git a/pytorch_lightning/trainer/training_loop.py b/pytorch_lightning/trainer/training_loop.py --- a/pytorch_lightning/trainer/training_loop.py +++ b/pytorch_lightning/trainer/training_loop.py @@ -776,6 +776,7 @@ def optimizer_closure(self, split_batch, batch_idx, opt_idx, optimizer, hiddens) # PROCE...
training_epoch_end's outputs doesn't have 'loss' key pytorch-lightning: build from master ``` Traceback (most recent call last): File "main.py", line 140, in <module> main(hparams) File "main.py", line 72, in main trainer.fit(model) File "/mnt/lustre/maxiao1/anaconda3/lib/python3.7/site-packages/py...
Try: `avg_loss = torch.stack([x['batch_loss'] for x in outputs]).mean()` Thanks, it works but 'train_acc' key doesn't exist, neither do `batch_train_acc`. How to access other keys returned in training_step? As of now in lightning you can access them using `x['callback_metrics']['loss']` and `x['callback_metrics']['tra...
2020-06-30T13:23:18Z
[]
[]
Traceback (most recent call last): File "main.py", line 140, in <module> main(hparams) File "main.py", line 72, in main trainer.fit(model) File "/mnt/lustre/maxiao1/anaconda3/lib/python3.7/site-packages/pytorch_lightning/trainer/trainer.py", line 881, in fit self.ddp_train(task, model) File ...
230
Lightning-AI/lightning
Lightning-AI__lightning-2433
d4a02e3bd8471946c606fef7512ce44d42f07d3a
diff --git a/pytorch_lightning/trainer/training_loop.py b/pytorch_lightning/trainer/training_loop.py --- a/pytorch_lightning/trainer/training_loop.py +++ b/pytorch_lightning/trainer/training_loop.py @@ -802,9 +802,22 @@ def optimizer_closure(self, split_batch, batch_idx, opt_idx, optimizer, hiddens) if sel...
0.8.2 calls backward on '_GeneratorContextManager' ## 🐛 Bug 0.8.2 calls backward on '_GeneratorContextManager' and crashes training. 0.8.1 works correctly. my `training_step` returns `{'loss':loss, 'log':{'learn_rate':self.lr}}` ``` Traceback (most recent call last): File "/opt/conda/lib/python3.6/site-pack...
did you override optimizer step? could you try master? we just pushed a fix to a typo we had Can confirm this happens on 0.8.3 ok. Can you post a colab example that replicates this? @Anjum48 @s-rog colab please @williamFalcon my optimizer step was untouched, I can't run more testing atm but I'll get to it as soon as...
2020-06-30T18:33:09Z
[]
[]
Traceback (most recent call last): File "/opt/conda/lib/python3.6/site-packages/torch/multiprocessing/spawn.py", line 20, in _wrap fn(i, *args) File "/opt/conda/lib/python3.6/site-packages/pytorch_lightning/trainer/distrib_data_parallel.py", line 538, in ddp_train self.run_pretrain_routine(model) Fi...
231
Lightning-AI/lightning
Lightning-AI__lightning-2565
e1bc208f66891e22f0139619a1be5c06235a0f34
diff --git a/pytorch_lightning/trainer/distrib_data_parallel.py b/pytorch_lightning/trainer/distrib_data_parallel.py --- a/pytorch_lightning/trainer/distrib_data_parallel.py +++ b/pytorch_lightning/trainer/distrib_data_parallel.py @@ -189,6 +189,7 @@ class TrainerDDPMixin(ABC): num_nodes: int node_rank: int ...
Can't use None (anymore) in checkpoint_callback ## 🐛 Bug using None in checkpoint_callback now errors out ``` -- Process 0 terminated with the following error: Traceback (most recent call last): File "/opt/conda/lib/python3.6/site-packages/torch/multiprocessing/spawn.py", line 20, in _wrap fn(i, *args) ...
2020-07-09T10:46:34Z
[]
[]
Traceback (most recent call last): File "/opt/conda/lib/python3.6/site-packages/torch/multiprocessing/spawn.py", line 20, in _wrap fn(i, *args) File "/opt/conda/lib/python3.6/site-packages/pytorch_lightning/trainer/distrib_data_parallel.py", line 562, in ddp_train q.put(self.checkpoint_callback.best_mo...
250
Lightning-AI/lightning
Lightning-AI__lightning-2572
c197b74289997fa11cd372b51adb637f3e3846ec
diff --git a/pytorch_lightning/core/memory.py b/pytorch_lightning/core/memory.py --- a/pytorch_lightning/core/memory.py +++ b/pytorch_lightning/core/memory.py @@ -209,7 +209,7 @@ def _forward_example_input(self) -> None: input_ = model.example_input_array input_ = model.transfer_batch_to_device(input_...
TPU fp16 requires apex installed <!-- ## 🐛 Bug <!-- A clear and concise description of what the bug is. --> When I tried to use precision=16 on TPU, pytorch-lightning is trying to find amp, which is unnecessary. The backtrace is ``` GPU available: False, used: False TPU available: True, using: 8 TPU cores...
Hi! thanks for your contribution!, great first issue! If you want to do 16 bit precision training, you either need to have the nightly version of pytorch install or have apex installed. Based on the traceback I guess that you do not have any of them. I could get this working using nightly version of pytorch: ``` pl....
2020-07-10T01:17:22Z
[]
[]
Traceback (most recent call last): File "bert_ner/light/fp16_debug.py", line 16, in <module> trainer = pl.Trainer(tpu_cores=8, precision=16) File "/anaconda3/envs/torch-xla-1.5/lib/python3.6/site-packages/pytorch_lightning/trainer/trainer.py", line 607, in __init__ self.init_amp() File "/anaconda3/e...
252
Lightning-AI/lightning
Lightning-AI__lightning-275
222d7d2d5d01771e63449bdcfcdaf7dd8ed1ecec
diff --git a/pytorch_lightning/root_module/decorators.py b/pytorch_lightning/root_module/decorators.py --- a/pytorch_lightning/root_module/decorators.py +++ b/pytorch_lightning/root_module/decorators.py @@ -10,13 +10,18 @@ def data_loader(fn): attr_name = '_lazy_' + fn.__name__ - @property - def _data_lo...
JIT support **Initial issue description below** JIT support requires several changes in the `Trainer` and `LightningModule`: - [x] No use of python properties like the current dataloader implementation - Possible solution: Use getters like implemented in #275 - Other possibility: Handle dataloading compl...
Good point. Hadn't tested lightning with JIT. I think the choice of property vs getter made sense for the first design of the framework. However, recent refactors have made those differences irrelevant. I don't see any reason why we shouldn't move to a getter instead of the property. Do you want to submit a PR for ...
2019-10-01T11:06:59Z
[]
[]
Traceback (most recent call last): File "train.py", line 69, in <module> train(config, data_dir) File "train.py", line 37, in train trainer.fit(pl_module) File "/home/schroeter/.virtualenvs/pytorch-1.2/lib/python3.7/site-packages/pytorch_lightning/trainer/trainer.py", line 694, in fit self.__ru...
270
Lightning-AI/lightning
Lightning-AI__lightning-2832
ad0f1194aa2fa8cc82c915e49aca3a1149901709
diff --git a/pytorch_lightning/accelerator_backends/ddp_spawn_backend.py b/pytorch_lightning/accelerator_backends/ddp_spawn_backend.py --- a/pytorch_lightning/accelerator_backends/ddp_spawn_backend.py +++ b/pytorch_lightning/accelerator_backends/ddp_spawn_backend.py @@ -49,7 +49,8 @@ def teardown(self, model): ...
Can't use None (anymore) in checkpoint_callback ## 🐛 Bug using None in checkpoint_callback now errors out ``` -- Process 0 terminated with the following error: Traceback (most recent call last): File "/opt/conda/lib/python3.6/site-packages/torch/multiprocessing/spawn.py", line 20, in _wrap fn(i, *args) ...
@williamFalcon I saw that this issue was mentioned and supposedly fixed in the merge, but I just tested with master and I'm still getting the same error
2020-08-05T06:45:37Z
[]
[]
Traceback (most recent call last): File "/opt/conda/lib/python3.6/site-packages/torch/multiprocessing/spawn.py", line 20, in _wrap fn(i, *args) File "/opt/conda/lib/python3.6/site-packages/pytorch_lightning/trainer/distrib_data_parallel.py", line 562, in ddp_train q.put(self.checkpoint_callback.best_mo...
285
Lightning-AI/lightning
Lightning-AI__lightning-2874
664258c825a68ac46c8305cb09350a7be0ae8d1c
diff --git a/pytorch_lightning/utilities/__init__.py b/pytorch_lightning/utilities/__init__.py --- a/pytorch_lightning/utilities/__init__.py +++ b/pytorch_lightning/utilities/__init__.py @@ -5,7 +5,7 @@ from pytorch_lightning.utilities.apply_func import move_data_to_device from pytorch_lightning.utilities.distribut...
self.hparam silently removes params that are not serializable <!-- ### Common bugs: 1. Tensorboard not showing in Jupyter-notebook see [issue 79](https://github.com/PyTorchLightning/pytorch-lightning/issues/79). 2. PyTorch 1.1.0 vs 1.2.0 support [see FAQ](https://github.com/PyTorchLightning/pytorch-lightning#fa...
Happens to me too. I'm also waiting for this fix, since i really want to use the new feature to put anything in hparams. @dscarmo you can take it over and send a PR :] or I ll check it tomorrow... Need to add warning about this.
2020-08-07T23:59:21Z
[]
[]
Traceback (most recent call last): File "lightning_hparams_bug.py", line 61, in <module> trainer.fit(model) # KeyError: 'optimizer' File "/home/*user*/anaconda3/envs/onseilake/lib/python3.7/site-packages/pytorch_lightning/trainer/trainer.py", line 965, in fit self.optimizers, self.lr_schedulers, self....
290
Lightning-AI/lightning
Lightning-AI__lightning-2911
f9d88f8088bbc27341f9d19c4aaf27259d22e072
diff --git a/pytorch_lightning/core/saving.py b/pytorch_lightning/core/saving.py --- a/pytorch_lightning/core/saving.py +++ b/pytorch_lightning/core/saving.py @@ -167,8 +167,9 @@ def _load_model_state(cls, checkpoint: Dict[str, Any], *cls_args, **cls_kwargs): cls_kwargs = {k: v for k, v in cls_kwargs.items...
load_from_checkpoint: TypeError: __init__() missing 1 required positional argument ## ❓ Questions and Help #### What is your question? load_from_checkpoint: TypeError: __init__() missing 1 required positional argument I have read the issues before, but the things different is **my `LightningModule` is inherite...
Did you try to call `self.save_hyperparameters()` in _LitModel? Because it looks like hparams were not saved to checkpoint. @awaelchli Hihi, the result is the same. It works if I directly use `_LitModel` instead of `LitModel`. So I think that's sth about inheritance. https://pytorch-lightning.readthedocs.io/en/l...
2020-08-11T08:17:15Z
[]
[]
Traceback (most recent call last): File "main.py", line 64, in <module> model = LitModel.load_from_checkpoint(hparams.checkpoint) File "/home/siahuat0727/.local/lib/python3.8/site-packages/pytorch_lightning/core/saving.py", line 138, in load_from_checkpoint model = cls._load_model_state(checkpoint, *ar...
297
Lightning-AI/lightning
Lightning-AI__lightning-3045
9031dc3b817d46dc9b36007cce1360cfcf99939f
diff --git a/pytorch_lightning/trainer/training_io.py b/pytorch_lightning/trainer/training_io.py --- a/pytorch_lightning/trainer/training_io.py +++ b/pytorch_lightning/trainer/training_io.py @@ -354,7 +354,7 @@ def dump_checkpoint(self, weights_only: bool = False) -> dict: checkpoint['lr_schedulers'] = lr_...
auto_lr_finder crashes when using 16-bit precision with pytorch-nightly and torchvision-nightly I heard that the nightly version of pytorch has native support for 16-bit training and wanted to give it a try since I'm trying to train some recent models on a GTX 1080. FYI, I'm using `pytorch-lightning=0.85.0`. I've in...
Hi! thanks for your contribution!, great first issue! After a few rapid experiments, the issue seems to be related to using the `auto_lr_finder`. In fact, disabling it fixes the issue. Ran into same issue, the error is clearer when you call lr_find directly: ``` -----------------------------------------------------...
2020-08-19T02:08:12Z
[]
[]
Traceback (most recent call last): File "pipe/train_cnn.py", line 237, in <module> main(create_submission=True) File "pipe/train_cnn.py", line 48, in main preds, weight_fpath = train(fold_number=fold_number, folds=folds) File "pipe/train_cnn.py", line 120, in train trainer.fit(model) File "/...
318
Lightning-AI/lightning
Lightning-AI__lightning-3229
f7dac3ff6c1b807734437188c66c226d490853f6
diff --git a/pytorch_lightning/trainer/training_loop.py b/pytorch_lightning/trainer/training_loop.py --- a/pytorch_lightning/trainer/training_loop.py +++ b/pytorch_lightning/trainer/training_loop.py @@ -476,7 +476,8 @@ def run_training_batch(self, batch, batch_idx, dataloader_idx): self.accumulated_los...
Trainer crashed when optimizer frequency is defined. <!-- ### Common bugs: 1. Tensorboard not showing in Jupyter-notebook see [issue 79](https://github.com/PyTorchLightning/pytorch-lightning/issues/79). 2. PyTorch 1.1.0 vs 1.2.0 support [see FAQ](https://github.com/PyTorchLightning/pytorch-lightning#faq) ...
Hi! thanks for your contribution!, great first issue! this is the case with multiple optimizers, you need to spec them.. so you would prefer having default 1 if freq is not specified? the exception occur because trainer_loop.py incorrect count number of optimizer if `frequency` is defined. Since this configuration work...
2020-08-27T18:51:21Z
[]
[]
Traceback (most recent call last): File "pl_bug.py", line 40, in <module> trainer.fit(mnist_model, train_loader) File "/opt/conda/lib/python3.6/site-packages/pytorch_lightning/trainer/states.py", line 48, in wrapped_fn result = fn(self, *args, **kwargs) File "/opt/conda/lib/python3.6/site-packages/...
336
Lightning-AI/lightning
Lightning-AI__lightning-3404
ff5f099cb759c9e77f363732ab20c9ec9e380f9b
diff --git a/pytorch_lightning/accelerators/horovod_backend.py b/pytorch_lightning/accelerators/horovod_backend.py --- a/pytorch_lightning/accelerators/horovod_backend.py +++ b/pytorch_lightning/accelerators/horovod_backend.py @@ -72,11 +72,6 @@ def setup(self, model): if isinstance(scheduler, _LRScheduler...
Horovod with native 16 precision not working <!-- ### Common bugs: 1. Tensorboard not showing in Jupyter-notebook see [issue 79](https://github.com/PyTorchLightning/pytorch-lightning/issues/79). 2. PyTorch 1.1.0 vs 1.2.0 support [see FAQ](https://github.com/PyTorchLightning/pytorch-lightning#faq) --> ##...
mind have look @tgaddair 🐰 Absolutely, let me take a look today and get back to you, @mutasem-mattar.
2020-09-08T21:34:31Z
[]
[]
Traceback (most recent call last): File "/workspace/main_lightning.py", line 500, in <module> main(hyperparams) File "/workspace/main_lightning.py", line 492, in main trainer.fit(model) File "/usr/local/lib/python3.6/dist-packages/pytorch_lightning/trainer/states.py", line 48, in wrapped_fn res...
355
Lightning-AI/lightning
Lightning-AI__lightning-453
37729f0a17995e847fa8693f0fe694f8dd0b259b
diff --git a/pytorch_lightning/root_module/memory.py b/pytorch_lightning/root_module/memory.py --- a/pytorch_lightning/root_module/memory.py +++ b/pytorch_lightning/root_module/memory.py @@ -3,6 +3,7 @@ ''' import gc +import os import subprocess import numpy as np @@ -198,19 +199,10 @@ def get_memory_profile(mo...
min_max log_gpu_memory option bug **Describe the bug** Setting `log_gpu_memory='min_max'` in `Trainer` leads to the following bug. ``` Traceback (most recent call last): File "/opt/conda/lib/python3.7/site-packages/pytorch_lightning/trainer/trainer.py", line 347, in fit self.single_gpu_train(model) File...
2019-11-03T14:35:56Z
[]
[]
Traceback (most recent call last): File "/opt/conda/lib/python3.7/site-packages/pytorch_lightning/trainer/trainer.py", line 347, in fit self.single_gpu_train(model) File "/opt/conda/lib/python3.7/site-packages/pytorch_lightning/trainer/dp_mixin.py", line 79, in single_gpu_train self.run_pretrain_routin...
370
Lightning-AI/lightning
Lightning-AI__lightning-499
d1b6b011c3403c6ca1c27c66ec6a613cdad0955f
diff --git a/pytorch_lightning/utilities/arg_parse.py b/pytorch_lightning/utilities/arg_parse.py --- a/pytorch_lightning/utilities/arg_parse.py +++ b/pytorch_lightning/utilities/arg_parse.py @@ -81,7 +81,7 @@ def add_default_args(parser, root_dir, rand_seed=None, possible_model_names=None parser.add_argument('--en...
Escaping % in add_default_args **Describe the bug** In utilities/arg_parse.py, a percentage symbol is not escaped and would cause an error when printing help information. ```python parser.add_argument('--overfit', default=-1, type=float, help='% of dataset to use with this option. float,...
2019-11-12T18:39:31Z
[]
[]
Traceback (most recent call last): File "/Users/chenghaomou/Code/ai2/temp.py", line 11, in <module> hyperparams = parent_parser.parse_args() File "/Users/chenghaomou/Anaconda/envs/Elisa/lib/python3.7/site-packages/test_tube/argparse_hopt.py", line 238, in parse_args results = self.__parse_args(args, na...
374
Lightning-AI/lightning
Lightning-AI__lightning-575
89ececb32ba0cfd810737cb90b2285a27332f5d4
diff --git a/pytorch_lightning/callbacks/pt_callbacks.py b/pytorch_lightning/callbacks/pt_callbacks.py --- a/pytorch_lightning/callbacks/pt_callbacks.py +++ b/pytorch_lightning/callbacks/pt_callbacks.py @@ -312,16 +312,16 @@ def on_epoch_end(self, epoch, logs=None): self.best = max(self.bes...
Error in `logging` call `pt_callbacks.py` Stack trace: ``` .... [00:04<00:00, 1.83s/batch, batch_nb=1, loss=0.478, v_nb=13--- Logging error --- Traceback (most recent call last): File "/Users/kdang/.pyenv/versions/3.6.7/lib/python3.6/logging/__init__.py", line 994, in emit msg = self.format(record) F...
2019-12-03T09:19:11Z
[]
[]
Traceback (most recent call last): File "/Users/kdang/.pyenv/versions/3.6.7/lib/python3.6/logging/__init__.py", line 994, in emit msg = self.format(record) File "/Users/kdang/.pyenv/versions/3.6.7/lib/python3.6/logging/__init__.py", line 840, in format return fmt.format(record) File "/Users/kdang/.p...
384
Lightning-AI/lightning
Lightning-AI__lightning-701
bc67689068a0db11adaf10b32a41bcd33b8ae88e
diff --git a/pytorch_lightning/trainer/training_loop.py b/pytorch_lightning/trainer/training_loop.py --- a/pytorch_lightning/trainer/training_loop.py +++ b/pytorch_lightning/trainer/training_loop.py @@ -151,7 +151,7 @@ def training_step(self, batch, batch_idx): """ - +import copy import inspect from abc import A...
batch may not have the copy method ## 🐛 Bug In this commit: https://github.com/PyTorchLightning/pytorch-lightning/commit/48b797fdb046bab73fc04ef6d6780f05d3623485 The training `batch` is copied before `transfer_batch_to_gpu `, but a batch may not have the `copy` method. Thus, the following error will be raised in ...
2020-01-17T11:51:57Z
[]
[]
Traceback (most recent call last): File "scripts/msmacro.py", line 113, in <module> main() File "scripts/msmacro.py", line 109, in main trainer.fit(model) File "/home/zhaohao/Documents/pytorch-lightning/pytorch_lightning/trainer/trainer.py", line 405, in fit self.single_gpu_train(model) File...
398
PrefectHQ/prefect
PrefectHQ__prefect-1165
ce13ac978c14fd6df79a66be501f5c83f245c0f6
diff --git a/src/prefect/engine/signals.py b/src/prefect/engine/signals.py --- a/src/prefect/engine/signals.py +++ b/src/prefect/engine/signals.py @@ -23,8 +23,9 @@ class PrefectStateSignal(PrefectError): def __init__(self, message: str = None, *args, **kwargs): # type: ignore super().__init__(message)...
Cannot raise a skip signal with a result I am filing an issue by suggestion of @cicdw after a conversation on gitter. I came up with the following use case: a task that raises a skip signal with a result because its logic has detected that there is no work to do and the result is already calculated somewhere. I could ...
2019-06-21T23:17:24Z
[]
[]
Traceback (most recent call last): File ".../prefect/engine/signals.py", line 27, in __init__ result=self, message=message, *args, **kwargs TypeError: type object got multiple values for keyword argument 'result'
465
PrefectHQ/prefect
PrefectHQ__prefect-1704
39131bbce118029957cc3137c7f5483b14a9e65e
diff --git a/src/prefect/environments/storage/docker.py b/src/prefect/environments/storage/docker.py --- a/src/prefect/environments/storage/docker.py +++ b/src/prefect/environments/storage/docker.py @@ -102,17 +102,20 @@ def __init__( else: # create an image from python:*-slim directly ...
Cloudpickle error when base_image isn't specified ## Description If you remove the base_image kwarg from storage and attempt to deploy a flow, a Cloudpickle error is triggered Traceback (most recent call last): File "/root/.prefect/healthcheck.py", line 12, in <module> import cloudpickle ModuleNotFoundError:...
@cicdw @wagoodman Do you think this could be due to cached layers? I haven't encountered this yet and I often don't provide a base image. @nanseay could you include what version of Python you are running? Yep, Python 3.7.3 We looked at this offline and it seems like it's an issue with assumptions on the Docker storage....
2019-11-05T15:01:30Z
[]
[]
Traceback (most recent call last): File "/root/.prefect/healthcheck.py", line 12, in <module> import cloudpickle ModuleNotFoundError: No module named 'cloudpickle'
538
PrefectHQ/prefect
PrefectHQ__prefect-1782
d91c5ebf3f7d6a11bdb895125efe203e8ba34bab
diff --git a/src/prefect/core/flow.py b/src/prefect/core/flow.py --- a/src/prefect/core/flow.py +++ b/src/prefect/core/flow.py @@ -1086,13 +1086,21 @@ def get_color(task: Task, map_index: int = None) -> str: name = "{} <map>".format(t.name) if is_mapped else t.name if is_mapped and flow_state:...
Flow state visualization fails if a mapped task is skipped ## Description When a flow contains a task which maps over a collection and this task is skipped, the visualization of the flow state fails with the following error message: > AttributeError: 'Skipped' object has no attribute 'map_states' The flow itse...
2019-11-30T00:47:11Z
[]
[]
Traceback (most recent call last): File "min_example.py", line 28, in <module> flow.visualize(flow_state=state) File "/Users/jtherhaa/miniconda3/envs/prefect/lib/python3.6/site-packages/prefect/core/flow.py", line 1089, in visualize for map_index, _ in enumerate(flow_state.result[t].map_states): Attri...
546
PrefectHQ/prefect
PrefectHQ__prefect-1862
43fb417c3020dc0e91b4c5d34b0ce6c52492214b
diff --git a/src/prefect/engine/cloud/task_runner.py b/src/prefect/engine/cloud/task_runner.py --- a/src/prefect/engine/cloud/task_runner.py +++ b/src/prefect/engine/cloud/task_runner.py @@ -3,13 +3,14 @@ import _thread import time import warnings -from typing import Any, Callable, Dict, Iterable, List, Optional, Tu...
LOOPing a Task depends on the recursion limit for Python ## Description *A clear description of the bug* Right now, Looping a task relies on recursion. This can cause the user to experience the following error: `RecursionError: maximum recursion depth exceeded in comparison`. Unless the user updates the system recurs...
Specific task run for reference https://cloud.prefect.io/prefect-qa2/task-run/fa0d004f-df37-40c4-a2b7-a71318ce0724
2019-12-17T15:21:34Z
[]
[]
Traceback (most recent call last): File "/Users/dylanhughes/dev/prefect/src/prefect/engine/task_runner.py", line 229, in run with prefect.context(context): File "/Users/dylanhughes/miniconda3/envs/product_flows/lib/python3.7/contextlib.py", line 112, in __enter__ return next(self.gen) File "/Users/d...
554
PrefectHQ/prefect
PrefectHQ__prefect-1991
4aa4808648dd8c49d4a2aa35417fcc277f1e5d56
diff --git a/src/prefect/tasks/control_flow/conditional.py b/src/prefect/tasks/control_flow/conditional.py --- a/src/prefect/tasks/control_flow/conditional.py +++ b/src/prefect/tasks/control_flow/conditional.py @@ -110,7 +110,11 @@ def ifelse(condition: Task, true_task: Task, false_task: Task) -> None: - false...
ifelse checks for True/False rather than truthy/falsy values ## Description `prefect.tasks.control_flow.conditional.ifelse` should check for truthy/falsy values, but (relying on `switch`) checks for exact equality to `True` or `False`. ## Expected Behavior [From the docs](https://docs.prefect.io/core/task_library/...
2020-02-07T02:01:29Z
[]
[]
Traceback (most recent call last): File "/tmp/test-flow.py", line 25, in <module> assert(not result.result.get(merged_result).is_skipped()) AssertionError
573
PrefectHQ/prefect
PrefectHQ__prefect-2047
e3e540e2bb18e3454016d06c698e086770b6ad36
diff --git a/src/prefect/engine/executors/dask.py b/src/prefect/engine/executors/dask.py --- a/src/prefect/engine/executors/dask.py +++ b/src/prefect/engine/executors/dask.py @@ -33,8 +33,10 @@ class DaskExecutor(Executor): Defaults to `False`. - debug (bool, optional): whether to operate in debug...
DaskExecutor.address doesn't work with Dask Gateway proxy ## Description Hello! I'm attempting to run a Prefect flow with DaskExecutor connected to a Dask cluster that was created using [Dask Gateway.](https://github.com/dask/dask-gateway) This raises an SSL error, however it could have something to do with my DG impl...
Successful connection and execution of `prefect` flow by passing in the `cluster.security` attribute as a `kwarg`: ``` executor = DaskExecutor(address=cluster.scheduler_address, security=cluster.security) flow.run(executor=executor) [2020-01-28 21:10:04,687] INFO - prefect.FlowRunner | Beginning Flow run for 'd...
2020-02-18T21:33:05Z
[]
[]
Traceback (most recent call last): File "/opt/conda/lib/python3.7/site-packages/prefect/engine/runner.py", line 48, in inner new_state = method(self, state, *args, **kwargs) File "/opt/conda/lib/python3.7/site-packages/prefect/engine/flow_runner.py", line 400, in get_flow_run_state with executor.start(...
580
PrefectHQ/prefect
PrefectHQ__prefect-2136
974625cfcb6bbd317afa36f320f6fe0575bdba54
diff --git a/src/prefect/engine/result_handlers/s3_result_handler.py b/src/prefect/engine/result_handlers/s3_result_handler.py --- a/src/prefect/engine/result_handlers/s3_result_handler.py +++ b/src/prefect/engine/result_handlers/s3_result_handler.py @@ -7,6 +7,7 @@ import cloudpickle import pendulum +import prefec...
Flow S3ResultHandler Fails for Dask Worker with nthreads > 1 ## Description Specifying S3ResultHandler for a Flow running on Dask worker(s) with nthreads > 1 fails with: `KeyError: 'credential_provider'`, likely due to a race condition in using the global boto3 session (boto3.client) between threads. ## Expected B...
Very interesting - thanks for the issue! For reference, [this is the boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/guide/resources.html?highlight=multithreading#multithreading-multiprocessing) referenced in that Slack thread, and Adam said: > By first creating a session and then creat...
2020-03-09T22:03:19Z
[]
[]
Traceback (most recent call last): File "/opt/conda/lib/python3.7/site-packages/prefect/engine/cloud/task_runner.py", line 117, in call_runner_target_handlers cloud_state = prepare_state_for_cloud(new_state) File "/opt/conda/lib/python3.7/site-packages/prefect/engine/cloud/utilities.py", line 21, in prepare...
591
PrefectHQ/prefect
PrefectHQ__prefect-2205
f3717b1a5b3625efe919c1c0c9f1a8e938b3b39d
diff --git a/src/prefect/engine/result_handlers/s3_result_handler.py b/src/prefect/engine/result_handlers/s3_result_handler.py --- a/src/prefect/engine/result_handlers/s3_result_handler.py +++ b/src/prefect/engine/result_handlers/s3_result_handler.py @@ -36,6 +36,7 @@ class S3ResultHandler(ResultHandler): def __in...
S3ResultHandler fails during Cloud Flow Run ## Description Running on `0.9.8` we've observed the S3ResultHandler failing with `AttributeError: 'S3ResultHandler' object has no attribute '_client'`. This was also reported by another user in the Prefect Community Slack. (See thread: https://prefect-community.slack.com/ar...
Hi! I will take a look to reproduce this evening, I changed the S3ResultHandler in 0.9.8 re: trying to thread safe the boto3 client, so I'm the one who probably broke it. Looking at it I think there's a chance the `client` property is retrieved without `self._client` being set prior. https://github.com/PrefectHQ/prefe...
2020-03-27T19:06:20Z
[]
[]
Traceback (most recent call last): File "/opt/conda/lib/python3.7/site-packages/prefect/engine/runner.py", line 48, in inner new_state = method(self, state, *args, **kwargs) File "/opt/conda/lib/python3.7/site-packages/prefect/engine/task_runner.py", line 925, in get_task_run_state state._result.store_...
606
PrefectHQ/prefect
PrefectHQ__prefect-2233
bdf152392320be34c77bb9886a2cf876e52f5f93
diff --git a/src/prefect/engine/result_handlers/s3_result_handler.py b/src/prefect/engine/result_handlers/s3_result_handler.py --- a/src/prefect/engine/result_handlers/s3_result_handler.py +++ b/src/prefect/engine/result_handlers/s3_result_handler.py @@ -72,7 +72,7 @@ def client(self) -> "boto3.client": Initia...
S3ResultHandler still failing on 0.10.0 ## Description We're still seeing https://github.com/PrefectHQ/prefect/issues/2204 after upgrading to `0.10.0`. We do see the code change from https://github.com/PrefectHQ/prefect/pull/2205 in the stack trace: ``` Unexpected error: AttributeError("'S3ResultHandler' object ha...
2020-03-31T16:56:46Z
[]
[]
Traceback (most recent call last): File "/opt/conda/lib/python3.7/site-packages/prefect/engine/runner.py", line 48, in inner new_state = method(self, state, *args, **kwargs) File "/opt/conda/lib/python3.7/site-packages/prefect/engine/task_runner.py", line 925, in get_task_run_state state._result.store_...
610
PrefectHQ/prefect
PrefectHQ__prefect-2337
1babcb7f38d1ff5a8e7eeec06a2ae7bbe7eeb89b
diff --git a/src/prefect/cli/auth.py b/src/prefect/cli/auth.py --- a/src/prefect/cli/auth.py +++ b/src/prefect/cli/auth.py @@ -182,17 +182,17 @@ def switch_tenants(id, slug): @auth.command(hidden=True) @click.option("--name", "-n", required=True, help="A token name.", hidden=True) -@click.option("--role", "-r", req...
HTTPError attempting to retrieve a runner token from the CLI ## Description Attempting to follow the docs, I tried to create a runner token from the command line after successfully logging in with a user token. I was greeted with an HTTPError (400) ``` (default) prefect auth login -t $(cat token) Login successful...
I should point out that a runner token retrieved from the UI works fine. Thank for opening @mcg1969! I am able to reproduce, looks to be a change in the input to the mutation that this command needs to be adjusted for. Will make the change
2020-04-15T16:08:04Z
[]
[]
Traceback (most recent call last): File "/opt/continuum/anaconda/envs/default/bin/prefect", line 6, in <module> exit(cli()) File "/opt/continuum/anaconda/envs/default/lib/python3.8/site-packages/click/core.py", line 829, in __call__ return self.main(*args, **kwargs) File "/opt/continuum/anaconda/env...
621
PrefectHQ/prefect
PrefectHQ__prefect-2502
58126ed79fa90c0a3d682e2074c9c96b0887cfbd
diff --git a/src/prefect/engine/task_runner.py b/src/prefect/engine/task_runner.py --- a/src/prefect/engine/task_runner.py +++ b/src/prefect/engine/task_runner.py @@ -637,9 +637,11 @@ def check_task_is_cached(self, state: State, inputs: Dict[str, Result]) -> State state = Pending("Cache was invalid; re...
FlowRunner manages context cache wrongly ## Description AttributeError and different behavior of output caching between Flow.run and FlowRunner.run. ## Expected Behavior No AttributeError, same behavior and cached result reuse of FlowRunner.run after Flow.run. ## Reproduction ```python from datetime import ti...
Looking for some thoughts on this. What's happening here is the `flow.run` function sets a global `caches` block in context (among other things) https://github.com/PrefectHQ/prefect/blob/6d141372cf89064d24bbafad582a9db26be0cbd5/src/prefect/core/flow.py#L1024-L1025 And then is uses flow runners to run that flow wh...
2020-05-06T15:46:49Z
[]
[]
Traceback (most recent call last): File "/Users/dafcok/miniconda3/lib/python3.6/site-packages/prefect/engine/runner.py", line 48, in inner new_state = method(self, state, *args, **kwargs) File "~/miniconda3/lib/python3.6/site-packages/prefect/engine/task_runner.py", line 631, in check_task_is_cached ca...
651
PrefectHQ/prefect
PrefectHQ__prefect-2570
d3305a7dd590ad1dee4bb85a18ddbefadfa7531c
diff --git a/src/prefect/agent/agent.py b/src/prefect/agent/agent.py --- a/src/prefect/agent/agent.py +++ b/src/prefect/agent/agent.py @@ -98,9 +98,11 @@ def __init__( no_cloud_logs: bool = False, ) -> None: self.name = name or config.cloud.agent.get("name", "agent") - self.labels = list( ...
Kubernetes Agent Failing to Parse Labels (version 0.11.0) ## Description *A clear description of the bug* It appears the kubernetes agent in version 0.11.0 is failing to read labels (possibly tied to https://github.com/PrefectHQ/prefect/pull/2558) with the following error: ``` (dw_kube) dylanhughes@Dylans-MacBo...
Looks like there's a double `literal_eval` happening. Looking into it
2020-05-15T15:22:11Z
[]
[]
Traceback (most recent call last): File "/usr/local/bin/prefect", line 8, in <module> sys.exit(cli()) File "/usr/local/lib/python3.6/site-packages/click/core.py", line 829, in __call__ return self.main(*args, **kwargs) File "/usr/local/lib/python3.6/site-packages/click/core.py", line 782, in main ...
662
PrefectHQ/prefect
PrefectHQ__prefect-2594
2032c445521f223bc8569715fcb35f0b339a8210
diff --git a/src/prefect/engine/results/s3_result.py b/src/prefect/engine/results/s3_result.py --- a/src/prefect/engine/results/s3_result.py +++ b/src/prefect/engine/results/s3_result.py @@ -167,7 +167,7 @@ def exists(self, location: str, **kwargs: Any) -> bool: Bucket=self.bucket, Key=location.format(...
S3Result with target raises error ## Archived from the [Prefect Public Slack Community](https://join.slack.com/t/prefect-public/shared_invite/enQtNzE5OTU3OTQwNzc1LTQ5M2FkZmQzZjI0ODg1ZTBmOTc0ZjVjYWFjMWExZDAyYzBmYjVmMTE1NTQ1Y2IxZTllOTc4MmI3NzYxMDlhYWU) **livni.itay**: Hi - I am working with `S3Result` and receiving a ...
Opening because this is still an active issue From the thread, relevant package versions are: ``` botocore: 1.15.32 boto3: 1.12.32 ``` Oh interesting, looks like we'll want to check something like: ```python if ex.response['Error']['Code'] == 'NoSuchKey': return False ``` or ```python except client.e...
2020-05-18T13:27:48Z
[]
[]
Traceback (most recent call last): File "/home/ilivni/miniconda3/envs/py37moc/lib/python3.7/site-packages/prefect/engine/runner.py", line 48, in inner new_state = method(self, state, *args, **kwargs) File "/home/ilivni/miniconda3/envs/py37moc/lib/python3.7/site-packages/prefect/engine/task_runner.py", line 651...
664
PrefectHQ/prefect
PrefectHQ__prefect-2608
254cbf7f80b2612447e32bd95184f2e9656513fc
diff --git a/src/prefect/core/flow.py b/src/prefect/core/flow.py --- a/src/prefect/core/flow.py +++ b/src/prefect/core/flow.py @@ -469,9 +469,12 @@ def add_task(self, task: Task) -> Task: self.tasks.add(task) self._cache.clear() - case = prefect.context.get("case", None) - ...
Parameter must be bound before case context ## Current behavior 0.11.0 `case.__enter__` mimics python if blocks, yet assumes that parameters are bound to the flow outside its context. That can cause some head-scratching for users. ```python from prefect import task, Parameter, Flow from prefect.tasks.control_flow i...
2020-05-19T18:27:00Z
[]
[]
Traceback (most recent call last): File "pref_case_bind.py", line 8, in <module> y = x-p File "~/miniconda3/lib/python3.6/site-packages/prefect/tasks/control_flow/case.py", line 100, in __exit__ child.set_upstream(cond, flow=self._flow) File "~/miniconda3/lib/python3.6/site-packages/prefect/core/tas...
667
PrefectHQ/prefect
PrefectHQ__prefect-2686
4cc0606a0219bfe8b33bbb50507a9f3e3b581823
diff --git a/src/prefect/utilities/gcp.py b/src/prefect/utilities/gcp.py --- a/src/prefect/utilities/gcp.py +++ b/src/prefect/utilities/gcp.py @@ -3,7 +3,6 @@ """ import prefect -from google.cloud import bigquery, storage from google.oauth2.service_account import Credentials @@ -47,6 +46,8 @@ def get_storage_c...
Google Imports are Tied Together ## Description *A clear description of the bug* I’m using the new `GCSResult` and I’m getting an import error when I don’t also specify `google-cloud-bigquery` as a dependency since they’re imports occur in the same file, I think? ``` Unexpected error: ImportError("cannot import n...
2020-06-01T03:14:15Z
[]
[]
Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/prefect/engine/runner.py", line 48, in inner new_state = method(self, state, *args, **kwargs) File "/usr/local/lib/python3.7/site-packages/prefect/engine/task_runner.py", line 986, in get_task_run_state result = self.result...
682
PrefectHQ/prefect
PrefectHQ__prefect-2868
960f15e9f59fcbd43a3f61199907f4970a3230e9
diff --git a/src/prefect/core/flow.py b/src/prefect/core/flow.py --- a/src/prefect/core/flow.py +++ b/src/prefect/core/flow.py @@ -6,6 +6,7 @@ import os import tempfile import time +import uuid import warnings from contextlib import contextmanager from pathlib import Path @@ -943,7 +944,14 @@ def _run( #...
Key error when using task_run_id in a target template ## Description Similar to one of the issues in #2640 where `filename` throws a key error when used in a template, so does `task_run_id`. ``` (py37moc) :~/prefect_guide$ /miniconda3/envs/py37moc/bin/python /home/ilivni/prefect_guide/tst_map.py 0.11.3 [2020-05...
Hey @gryBox having a task run ID requires a use of a backend—either core's server or Cloud. Since each task run ID corresponds to a unique entry in the database. So I would expect some behavior like this to happen. I do think we _could_ raise a more informative error though. @joshmeek I think there's an opportunity her...
2020-06-25T21:06:18Z
[]
[]
Traceback (most recent call last): File "/miniconda3/envs/py37moc/lib/python3.7/site-packages/prefect/engine/runner.py", line 48, in inner new_state = method(self, state, *args, **kwargs) File "/miniconda3/envs/py37moc/lib/python3.7/site-packages/prefect/engine/task_runner.py", line 660, in check_target ...
702
PrefectHQ/prefect
PrefectHQ__prefect-2877
71d40d7a4d3f97d0ca562b80b9033646e1a2c9ae
diff --git a/src/prefect/agent/fargate/agent.py b/src/prefect/agent/fargate/agent.py --- a/src/prefect/agent/fargate/agent.py +++ b/src/prefect/agent/fargate/agent.py @@ -370,7 +370,18 @@ def _parse_kwargs(self, user_kwargs: dict, check_envars: bool = False) -> tuple: self.logger.debug("{} = {}".format...
Fargate container definitions argument parsing failing (CLI) ## Description It seems the string data input to be used by the Fargate Agent is never cast as a dict: ``` prefect agent start fargate --containerDefinitions="[{'logConfiguration': 'options': {'awslogs-group': 'something', 'awslogs-stream-prefix': 'pre...
2020-06-26T14:39:43Z
[]
[]
Traceback (most recent call last): File "/Users/nbatalha/Library/Caches/pypoetry/virtualenvs/pipelines-P6yz7rn1-py3.8/bin/prefect", line 10, in <module> sys.exit(cli()) File "/Users/nbatalha/Library/Caches/pypoetry/virtualenvs/pipelines-P6yz7rn1-py3.8/lib/python3.8/site-packages/click/core.py", line 829, in...
704
PrefectHQ/prefect
PrefectHQ__prefect-3085
f0a2056af0bcac28cca3554862dc0f2041b88b02
diff --git a/src/prefect/engine/task_runner.py b/src/prefect/engine/task_runner.py --- a/src/prefect/engine/task_runner.py +++ b/src/prefect/engine/task_runner.py @@ -159,7 +159,12 @@ def initialize_run( # type: ignore task_name=self.task.name, task_tags=self.task.tags, ) - co...
DaskExecutor doesn't write results ## Description DaskExecutor doesn't write LocalResults with JSONSerializer. In our tests, also other results and with a cluster aren't written. For the Repro, I picked the simplest case. ## Expected Behavior DaskExecutor writes LocalResults. If workers need extra treatment to se...
Hi @ahirner I don't think setting temporary config like that will do what you expect due to the workers being created outside of that context manager. Having checkpointing set in your global config.toml (or through an env var) should do the trick: ``` [flows] checkpointing = true ``` Global configuration options ...
2020-08-04T15:38:51Z
[]
[]
Traceback (most recent call last): File "repro_local_write.py", line 37, in <module> test(DaskExecutor()) File "repro_local_write.py", line 26, in test assert files == ["magic.json"], files AssertionError: []
723
PrefectHQ/prefect
PrefectHQ__prefect-473
f5d5a4349fefcac65d856f615040ae2306bcfb22
diff --git a/src/prefect/core/flow.py b/src/prefect/core/flow.py --- a/src/prefect/core/flow.py +++ b/src/prefect/core/flow.py @@ -858,7 +858,12 @@ def run( Returns: - State of the flow after it is run resulting from it's return tasks """ - runner = prefect.engine.flow_runner.FlowR...
Create separate CloudFlowRunner and CloudTaskRunner classes to encapsulate logic We're starting to get to a point of lots of conditionals (`if prefect_cloud:`) and repetitive logic; I think these could be standalone classes set as default by a config. State handler exception raised on client error Output of error: `"F...
Following conversation with @cicdw: - CloudTaskRunner needs to query for all upstream states immediately before using them (to ensure they aren't stale) - CloudFlowRunner needs to query for all reference/terminal states immediately before using them (to ensure they aren't stale)
2019-01-01T02:42:37Z
[]
[]
Traceback (most recent call last): File "<stdin>", line 2, in <module> File "/usr/local/lib/python3.6/site-packages/prefect/environments.py", line 204, in run return runner.run(**(runner_kwargs or {})) File "/usr/local/lib/python3.6/site-packages/prefect/engine/flow_runner.py", line 229, in run rais...
756
PrefectHQ/prefect
PrefectHQ__prefect-863
9291bef70c4dcf1b3491813174268d3454786802
diff --git a/src/prefect/core/flow.py b/src/prefect/core/flow.py --- a/src/prefect/core/flow.py +++ b/src/prefect/core/flow.py @@ -3,6 +3,7 @@ import functools import inspect import json +import os import tempfile import time import uuid @@ -1105,8 +1106,12 @@ def get_color(task: Task, map_index: int = None) -> s...
flow.visualize() fails on windows A simple flow.visualize() command fails when running on Windows. Looks like it's due to the way that windows creates tempfiles (see this thread: https://stackoverflow.com/questions/23212435/permission-denied-to-write-to-my-temporary-file) Traceback (most recent call last): File ...
Thanks for the issue and the helpful pointer @mblye ! It looks like `graphviz` is attempting to open the temporary file a _second_ time here: https://github.com/PrefectHQ/prefect/blob/master/src/prefect/core/flow.py#L1105-L1106 and Windows doesn't like that. It should be possible to work around this by creating...
2019-03-27T19:22:59Z
[]
[]
Traceback (most recent call last): File "C:\Dev\source\python\prefecttesting\dostuff.py", line 34, in <module> flow.visualize() File "C:\Dev\source\python\prefecttesting\venv\lib\site-packages\prefect\core\flow.py", line 1106, in visualize graph.render(tmp.name, view=True) File "C:\Dev\source\python...
824
PrefectHQ/prefect
PrefectHQ__prefect-973
4d09b0832f675847def55050bb1c7f0e651e93ef
diff --git a/src/prefect/environments/storage/docker.py b/src/prefect/environments/storage/docker.py --- a/src/prefect/environments/storage/docker.py +++ b/src/prefect/environments/storage/docker.py @@ -7,6 +7,7 @@ import tempfile import textwrap import uuid +from slugify import slugify from typing import Any, Call...
Flow storage copying fails with spaces in flow.name ``` Step 1/9 : FROM python:3.6 ---> 2bb3204ab1d1 Step 2/9 : RUN pip install pip --upgrade ---> Using cache ---> 4d8b101e2933 Step 3/9 : RUN pip install wheel ---> Using cache ---> 7389d69ba240 Step 4/9 : RUN mkdir /root/.prefect/ ---> Using cache ---...
Since we already require `slugify`, we could use that as a quick off-the-shelf solution: ```python import slugify slugify.slugify("Test Flow") ...
2019-04-24T00:00:55Z
[]
[]
Traceback (most recent call last): File "managed_agent_testing.py", line 15, in <module> f.deploy(project_name="Test Project") File "/Users/josh/Desktop/code/prefect/src/prefect/core/flow.py", line 1361, in deploy set_schedule_inactive=set_schedule_inactive, File "/Users/josh/Desktop/code/prefect/sr...
844
PrefectHQ/prefect
PrefectHQ__prefect-978
d5317a9bcdf1cd73e10f0f5b6948260ceb84cfc4
diff --git a/src/prefect/environments/execution/cloud/environment.py b/src/prefect/environments/execution/cloud/environment.py --- a/src/prefect/environments/execution/cloud/environment.py +++ b/src/prefect/environments/execution/cloud/environment.py @@ -5,6 +5,7 @@ from os import path from typing import Any, List ...
Decoding error when running a stored flow ``` Traceback (most recent call last): File "<string>", line 1, in <module> File "/usr/local/lib/python3.6/site-packages/prefect/environments/execution/cloud/environment.py", line 104, in run_flow flow = schema.load(json.load(f)) File "/usr/local/lib/python3.6/js...
2019-04-24T12:54:06Z
[]
[]
Traceback (most recent call last): File "<string>", line 1, in <module> File "/usr/local/lib/python3.6/site-packages/prefect/environments/execution/cloud/environment.py", line 104, in run_flow flow = schema.load(json.load(f)) File "/usr/local/lib/python3.6/json/__init__.py", line 296, in load return...
845
Qiskit/qiskit
Qiskit__qiskit-10126
574da7ee5cfb58cf3d7eb5ef726d15166c5e247a
diff --git a/qiskit/quantum_info/synthesis/qsd.py b/qiskit/quantum_info/synthesis/qsd.py --- a/qiskit/quantum_info/synthesis/qsd.py +++ b/qiskit/quantum_info/synthesis/qsd.py @@ -81,7 +81,7 @@ def qs_decomposition( circ = decomposer_1q(mat) elif dim == 4: if decomposer_2q is None: - if...
Quantum shannon decomposition failing for some inputs ### Environment - **Qiskit Terra version**: 0.42.1 - **Python version**: 3.10.8 ### What is happening? qs_decomposition in [qsd.py](https://github.com/Qiskit/qiskit-terra/blob/main/qiskit/quantum_info/synthesis/qsd.py) throws an error for some examples...
I can correct this with the above indicated as long as the reasoning follows Yeah, I believe your reasoning is correct here, thanks - I don't think there's anything to do if there's nothing to decompose. @ewinston can check me, though, and I'll assign him to the PR if you're able to make it. Let us know if not, thoug...
2023-05-17T15:30:11Z
[]
[]
Traceback (most recent call last): Cell In[14], line 3 qs_decomposition(np.array([[0,1],[1,0]])) File /opt/conda/lib/python3.10/site-packages/qiskit/quantum_info/synthesis/qsd.py:122 in qs_decomposition return _apply_a2(circ) File /opt/conda/lib/python3.10/site-packages/qiskit/quantum_info/synthesis...
860
Qiskit/qiskit
Qiskit__qiskit-1020
017e4566bbc91cdecc9181ef0dc46e8656d2e3ac
diff --git a/qiskit/unroll/_dagunroller.py b/qiskit/unroll/_dagunroller.py --- a/qiskit/unroll/_dagunroller.py +++ b/qiskit/unroll/_dagunroller.py @@ -78,11 +78,12 @@ def expand_gates(self, basis=None): gatedefs.append(Gate(children)) # Walk through the DAG and examine each node builtins ...
Using simulator instructions crashes the latex drawer <!-- ⚠️ If you do not respect this template, your issue will be closed --> <!-- ⚠️ Make sure to browse the opened and closed issues --> ### Informations - **Qiskit Terra version**: latest master - **Python version**: 3.7 - **Operating system**: linux ###...
2018-10-03T18:28:06Z
[]
[]
Traceback (most recent call last): File "test_qiskit.py", line 67, in <module> visualization.generate_latex_source(qc, filename='out.tex') File "/tmp/qiskit/qiskit-terra/qiskit/tools/visualization/_circuit_visualization.py", line 354, in generate_latex_source json_circuit = transpile(dag_circuit, basis...
869
Qiskit/qiskit
Qiskit__qiskit-10495
42a0ee84df3e15834b174bdb0295142b987b261f
diff --git a/qiskit/circuit/commutation_checker.py b/qiskit/circuit/commutation_checker.py --- a/qiskit/circuit/commutation_checker.py +++ b/qiskit/circuit/commutation_checker.py @@ -65,10 +65,20 @@ def _hashable_parameters(self, params): return ("fallback", str(params)) def commute( - self, op1:...
`commutation analysis` lead to `numpy.core._exceptions._ArrayMemoryError` with large `mct` ### Environment - **Qiskit Terra version**: 0.43.1 meta package, terra 0.24.1 - **Python version**: 3.10 - **Operating system**: docker continuumio/miniconda3 ### What is happening? When transpiling (level 2) a circuit with ...
2023-07-25T09:22:38Z
[]
[]
Traceback (most recent call last): File "myfile.py", line 7, in <module> transpile(qc, optimization_level=2) File "...qiskit/compiler/transpiler.py", line 380, in transpile _serial_transpile_circuit( File "...qiskit/compiler/transpiler.py", line 462, in _serial_transpi...
913
Qiskit/qiskit
Qiskit__qiskit-10521
c8552f6b51a36aa432b21b0d31b88e212a104ca7
diff --git a/qiskit/circuit/quantumcircuit.py b/qiskit/circuit/quantumcircuit.py --- a/qiskit/circuit/quantumcircuit.py +++ b/qiskit/circuit/quantumcircuit.py @@ -2180,7 +2180,7 @@ def copy(self, name: str | None = None) -> "QuantumCircuit": """Copy the circuit. Args: - name (str): name to ...
`QuantumCircuit.copy(name=?)` allows for any object to be used as name ### Environment - **Qiskit Terra version**: 0.43.1 meta package, terra 0.24.1 - **Python version**: 3.10 - **Operating system**: docker continuumio/miniconda3 ### What is happening? Creating a circuit via copy allows to give an invalid name (no...
This is somewhat a regular part of Python programming; the language doesn't enforce type checking. You'll _always_ be able to put badly typed objects into Python classes, since the language fundamentally doesn't have access control. That said, in this particular case, we _do_ do the manual check in `QuantumCircuit....
2023-07-27T19:56:41Z
[]
[]
Traceback (most recent call last): File "myfile.py", line 13, in <module> transpile(final_circuit, optimization_level=0) File ".../qiskit/compiler/transpiler.py", line 380, in transpile _serial_transpile_circuit( File ".../qiskit/compiler/transpiler.py", line 462, in _...
916
Qiskit/qiskit
Qiskit__qiskit-10537
4722c50a59157a5be638c8b30a2b77a0b127e4ae
diff --git a/qiskit/qpy/binary_io/circuits.py b/qiskit/qpy/binary_io/circuits.py --- a/qiskit/qpy/binary_io/circuits.py +++ b/qiskit/qpy/binary_io/circuits.py @@ -970,10 +970,13 @@ def write_circuit(file_obj, circuit, metadata_serializer=None): new_custom_operations = list(custom_operations.keys()) wh...
QPY invalid payload generation via `compose()` or `QuantumCircuit.control()` ### Environment - **Qiskit Terra version**: 0.23.2 - **Python version**: 3.10 - **Operating system**: Linux ### What is happening? Running `compose()` with `inplace=True` from an input generated with `QuantumCircuit.control()` leads to ...
For anyone experiencing this you can work around this failure by changing: ```python qc.compose(qc0.control(1), [0,1,2], inplace=True) qc.compose(qc1.control(1), [0,1,2], inplace=True) ``` to ```python qc.append(qc0.control(1), [0,1,2]) qc.append(qc1.control(1), [0,1,2]) ``` I think something's a bit odd...
2023-07-31T17:26:31Z
[]
[]
Traceback (most recent call last): File "/tmp/test_qpy_roundtrip.py", line 17, in <module> new_qc = load(fd)[0] File "/tmp/foo/lib/python3.10/site-packages/qiskit/qpy/interface.py", line 269, in load loader( File "/tmp/foo/lib/python3.10/site-packages/qiskit/qpy/binary_io/circuits.py", line 905, in ...
919
Qiskit/qiskit
Qiskit__qiskit-1118
02200d2cdbbc5057062c35f9002463db7795cdf0
diff --git a/qiskit/backends/aer/statevector_simulator.py b/qiskit/backends/aer/statevector_simulator.py --- a/qiskit/backends/aer/statevector_simulator.py +++ b/qiskit/backends/aer/statevector_simulator.py @@ -56,8 +56,6 @@ def _run_job(self, job_id, qobj): QobjInstruction(name='snapshot', params=[fin...
Can not combine the Result object from the same backend (statevector) <!-- ⚠️ If you do not respect this template, your issue will be closed --> <!-- ⚠️ Make sure to browse the opened and closed issues --> ### Informations - **Qiskit Terra version**: the master branch - **Python version**: 3.6.5 - **Operating ...
So I dug into this, the underlying issue is that name in most places is not actually a property/string but instead actually a method. So when result is doing the comparison of the backend_name property it's getting a bound method (which doesn't match for different objects) instead of the string it was expecting. We ...
2018-10-17T18:52:16Z
[]
[]
Traceback (most recent call last): File "/Users/rchen/Developer/Quantum/qiskit-terra/qiskit/result/_result.py", line 125, in __add__ copy_of_self += other File "/Users/rchen/Developer/Quantum/qiskit-terra/qiskit/result/_result.py", line 108, in __iadd__ raise QISKitError('Result objects from different ...
942
Qiskit/qiskit
Qiskit__qiskit-1215
9d603f11a350ee77e5cd3fa02c8e61f40ab44440
diff --git a/qiskit/backends/aer/aerjob.py b/qiskit/backends/aer/aerjob.py --- a/qiskit/backends/aer/aerjob.py +++ b/qiskit/backends/aer/aerjob.py @@ -114,8 +114,12 @@ def status(self): elif self._future.done(): _status = JobStatus.DONE if self._future.exception() is None else JobStatus.ERROR ...
test_compiler breaks AerJob status check <!-- ⚠️ If you do not respect this template, your issue will be closed --> <!-- ⚠️ Make sure to browse the opened and closed issues --> ### Informations - **Qiskit Terra version**: master - **Python version**: - **Operating system**: ### What is the current behavior?...
I'm taking over this one
2018-11-05T10:38:23Z
[]
[]
Traceback (most recent call last): File "/Users/paul/Desktop/Github_repos/qiskit-core/test/python/test_cpp.py", line 34, in test_aer_status job_sim.status() File "/Users/paul/Desktop/Github_repos/qiskit-core/qiskit/backends/aer/aerjob.py", line 37, in _wrapper return func(self, *args, **kwargs) File...
958
Qiskit/qiskit
Qiskit__qiskit-1284
3fb837f1afd6be505c3139d5f226936d7ff9a1fc
diff --git a/examples/python/teleport.py b/examples/python/teleport.py --- a/examples/python/teleport.py +++ b/examples/python/teleport.py @@ -47,6 +47,7 @@ qc.measure(q[1], c1[0]) # Apply a correction +qc.barrier(q) qc.z(q[2]).c_if(c0, 1) qc.x(q[2]).c_if(c1, 1) qc.measure(q[2], c2[0]) @@ -57,17 +58,32 @@ #####...
The `test_online_qasm_simulator_two_registers` is failing in master ### What is the current behavior? The test is failing in the `master` branch with the following error: ``` ====================================================================== FAIL: test_online_qasm_simulator_two_registers (python.ibmq.test_ibm...
It finally failed for me locally in the tests. However, I ran the test 1000 times by itself and could not reproduce it
2018-11-17T17:51:49Z
[]
[]
Traceback (most recent call last): File "/home/travis/build/Qiskit/qiskit-terra/test/python/common.py", line 373, in _wrapper return decorated_func(self, *args, **kwargs) File "/home/travis/build/Qiskit/qiskit-terra/test/python/ibmq/test_ibmq_qasm_simulator.py", line 109, in test_online_qasm_simulator_two_r...
971
Qiskit/qiskit
Qiskit__qiskit-1295
77dc51b93e7312bbff8f5acf7d8242232bd6624f
diff --git a/qiskit/backends/ibmq/credentials/_configrc.py b/qiskit/backends/ibmq/credentials/_configrc.py --- a/qiskit/backends/ibmq/credentials/_configrc.py +++ b/qiskit/backends/ibmq/credentials/_configrc.py @@ -9,6 +9,7 @@ Utilities for reading and writing credentials from and to configuration files. """ +impor...
credentials failed for qiskit ver 0.6.1 <!-- ⚠️ If you do not respect this template, your issue will be closed --> <!-- ⚠️ Make sure to browse the opened and closed issues --> ### Informations - **Qiskit Terra version**: 0.6.1 - **Python version**: 3.7.0 - **Operating system**:MAC OSX 10.13.6 ### What is t...
Can you try enable_account or regenerating the token. Your code should work. If you type `IBMQ.stored_accounts()` do you see the account. @pacomf I can confirm this has happened to me today as well. I cant reproduce the bug, i regenerate my APIToken and it works fine using qiskit terra... is it still happening? Can yo...
2018-11-19T08:27:15Z
[]
[]
Traceback (most recent call last): File "/anaconda3/lib/python3.7/site-packages/qiskit/backends/ibmq/ibmqsingleprovider.py", line 71, in _authenticate credentials.verify) File "/anaconda3/lib/python3.7/site-packages/IBMQuantumExperience/IBMQuantumExperience.py", line 478, in __init__ self.req = _Reques...
975
Qiskit/qiskit
Qiskit__qiskit-1436
259c10580d22122e739ed466d306dcd5adb2027f
diff --git a/qiskit/qobj/_qobj.py b/qiskit/qobj/_qobj.py --- a/qiskit/qobj/_qobj.py +++ b/qiskit/qobj/_qobj.py @@ -50,8 +50,6 @@ def _expand_item(cls, obj): return [cls._expand_item(item) for item in obj] if isinstance(obj, dict): return {key: cls._expand_item(value) for key, value in...
crash when set initial_state with complex vector for simulator <!-- ⚠️ If you do not respect this template, your issue will be closed --> <!-- ⚠️ Make sure to browse the opened and closed issues --> ### Informations - **Qiskit Terra version**: the master branch (Dec. 4th) - **Python version**: 3.7.1 - **Operat...
@diego-plan9 can you please look into this? passing a `config` kwarg to `execute()` seems to not serialize correctly... I think I need more info - but if you are modifying a `Qobj` instance directly, the data (in this case, I assume is appending the `config`) should be as close to the specs as possible, which would mea...
2018-12-05T20:51:20Z
[]
[]
Traceback (most recent call last): File "/Users/rchen/Developer/Quantum/temp/aqua/test/test_operator.py", line 136, in test_create_from_matrix non_matrix_mode = op.eval('paulis', circuit, backend, run_config=run_config)[0] File "/Users/rchen/Developer/Quantum/temp/aqua/qiskit_aqua/operator.py", line 779, in...
997
Qiskit/qiskit
Qiskit__qiskit-1748
186f3bf4fdd2bdcd9d18b2e059aea76209ddda0b
diff --git a/qiskit/tools/visualization/_text.py b/qiskit/tools/visualization/_text.py --- a/qiskit/tools/visualization/_text.py +++ b/qiskit/tools/visualization/_text.py @@ -215,11 +215,13 @@ def __init__(self, label, input_length, order): class BoxOnQuWireBot(MultiBox, BoxOnQuWire): """ Draws the bottom part of...
Using the rzz gate yields an error on circuit drawing <!-- ⚠️ If you do not respect this template, your issue will be closed --> <!-- ⚠️ Make sure to browse the opened and closed issues --> ### Informations - **Qiskit Terra version**: qiskit version 0.7.0 - **Python version**: python 3.6.6 - **Operating syst...
2019-02-02T02:13:11Z
[]
[]
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/local/lib/python3.6/site-packages/qiskit/circuit/quantumcircuit.py", line 83, in __str__ return str(self.draw(output='text')) File "/usr/local/lib/python3.6/site-packages/qiskit/tools/visualization/_text.py", line 413, in _...
1,037
Qiskit/qiskit
Qiskit__qiskit-1765
ff091d1ceff3454e793d919b0c19e13a601c908f
diff --git a/qiskit/circuit/gate.py b/qiskit/circuit/gate.py --- a/qiskit/circuit/gate.py +++ b/qiskit/circuit/gate.py @@ -21,7 +21,7 @@ def __init__(self, name, params, qargs, circuit=None): name = instruction name string params = list of real parameters (will be converted to symbolic) qargs...
CompositeGate became unusable - what is the replacement? ### Informations - **Qiskit Terra version**: 0.7 - **Python version**: 3.6.5 - **Operating system**: Linux ### What is the current behavior? Commit 7485ed924126b0861ef94d35eccef2d3532d70bf removed the `CompositeGate.X = X` from the ` qiskit/extensions/si...
thanks for the input we are thinking about how to fix this. @ajavadia and i were discussing today. I think the best idea is to not try and revert but give an update in the change that it is broken but fix with a method that scales better.
2019-02-05T16:03:38Z
[]
[]
Traceback (most recent call last): File "<input>", line 1, in <module> File "<input>", line 74, in crzz File "<input>", line 64, in __init__ AttributeError: 'CRZZGate' object has no attribute 'cu1'
1,039
Qiskit/qiskit
Qiskit__qiskit-1849
91149f910e5530dc01dace328cb6cba0bce950cd
diff --git a/qiskit/tools/visualization/_text.py b/qiskit/tools/visualization/_text.py --- a/qiskit/tools/visualization/_text.py +++ b/qiskit/tools/visualization/_text.py @@ -784,8 +784,11 @@ def build_layers(self): Raises: VisualizationError: When the drawing is, for some reason, impossible to be...
Text circuit drawer raises ValueError if an empty circuit is given <!-- ⚠️ If you do not respect this template, your issue will be closed --> <!-- ⚠️ Make sure to browse the opened and closed issues --> ### Information - **Qiskit Terra version**: 0.7.3 - **Python version**: 3.6.8 - **Operating system**: macOS ...
2019-02-22T19:20:00Z
[]
[]
Traceback (most recent call last): File "c.py", line 3, in <module> print(qc) File "/Users/ima/envs/vqe2/lib/python3.6/site-packages/qiskit/circuit/quantumcircuit.py", line 83, in __str__ return str(self.draw(output='text')) File "/Users/ima/envs/vqe2/lib/python3.6/site-packages/qiskit/tools/visuali...
1,051
Qiskit/qiskit
Qiskit__qiskit-1866
fb44b4ad18969a89a03e78c9ca4944750edbacb4
diff --git a/qiskit/tools/visualization/_matplotlib.py b/qiskit/tools/visualization/_matplotlib.py --- a/qiskit/tools/visualization/_matplotlib.py +++ b/qiskit/tools/visualization/_matplotlib.py @@ -462,7 +462,8 @@ def _draw_ops(self, verbose=False): _wide_gate = 'u2 u3 cu2 cu3'.split() _barriers = {'...
Matplotlib circuit drawer raises IndexError if there is no gate in QuantumCircuit <!-- ⚠️ If you do not respect this template, your issue will be closed --> <!-- ⚠️ Make sure to browse the opened and closed issues --> ### Information - **Qiskit Terra version**: 0.7.3 - **Python version**: 3.6.8 - **Operating s...
@nkanazawa1989 Can you check it?
2019-02-25T21:01:55Z
[]
[]
Traceback (most recent call last): File "c.py", line 5, in <module> qc.draw(filename='output.pdf', output='mpl') File "/Users/ima/envs/vqe2/lib/python3.6/site-packages/qiskit/circuit/quantumcircuit.py", line 353, in draw reverse_bits=reverse_bits) File "/Users/ima/envs/vqe2/lib/python3.6/site-packag...
1,055
Qiskit/qiskit
Qiskit__qiskit-1944
b56cdf32e67438879faddf91d56eae04724e928b
diff --git a/qiskit/dagcircuit/_dagcircuit.py b/qiskit/dagcircuit/_dagcircuit.py --- a/qiskit/dagcircuit/_dagcircuit.py +++ b/qiskit/dagcircuit/_dagcircuit.py @@ -1336,7 +1336,7 @@ def multigraph_layers(self): next_layer = [] def collect_runs(self, namelist): - """Return a set of runs of "op"...
Mapper error when I try to execute QuantumCircuit as an object of a user defined class <!-- ⚠️ If you do not respect this template, your issue will be closed --> <!-- ⚠️ Make sure to browse the opened and closed issues --> ### Informations - **Qiskit version**: 0.7.0 - **Python version**: 3.6.7 - **Operating s...
Hi @isolatedinformation could you provide some more information about the circuit you were trying to execute when this error occurred? My circuit consisits of 9 qubits and 9 cbits to record thier outcomes. Basically, I was trying to simulate a noisy channel and perform error correction to retireve the initial message. ...
2019-03-10T09:20:58Z
[]
[]
Traceback (most recent call last): File "class_counts.py", line 183, in <module> main() File "class_counts.py", line 163, in main sim = obj.simulate(p,b) File "class_counts.py", line 111, in simulate dec_state = self.ibmq(b) File "class_counts.py", line 97, in ibmq job_exp = execute(sel...
1,064
Qiskit/qiskit
Qiskit__qiskit-1959
d25e58dde25bd6783815828ce72b35935b764eb3
diff --git a/qiskit/qobj/models.py b/qiskit/qobj/models.py --- a/qiskit/qobj/models.py +++ b/qiskit/qobj/models.py @@ -10,7 +10,8 @@ from marshmallow.validate import Length, Range, Regexp from qiskit.validation.base import BaseModel, BaseSchema, bind_schema -from qiskit.validation.fields import Integer, List, Neste...
ghz example is failing in qobj <!-- ⚠️ If you do not respect this template, your issue will be closed --> <!-- ⚠️ Make sure to browse the opened and closed issues --> ### Information - **Qiskit Terra version**: - **Python version**: - **Operating system**: ### What is the current behavior? ### Steps ...
It seems quite similar to the errors in Aer that caused two tests to be skipped during the Qobj PR (as `IBMQProvider` contains also code very similar to Aer's to deal with noise model, etc) - I'll check with @chriseclectic as they can probably be handled at the same time. a few other examples also fail. it seems the fa...
2019-03-12T11:05:25Z
[]
[]
Traceback (most recent call last): File "examples/python/ghz.py", line 59, in <module> result = job.result() File "/anaconda3/lib/python3.6/site-packages/qiskit/providers/ibmq/ibmqjob.py", line 186, in result job_response = self._wait_for_result(timeout=timeout, wait=wait) File "/anaconda3/lib/pytho...
1,066
Qiskit/qiskit
Qiskit__qiskit-2149
edc96e5f0581ab6aee40013e7a8e3c6c50feda8e
diff --git a/qiskit/circuit/quantumcircuit.py b/qiskit/circuit/quantumcircuit.py --- a/qiskit/circuit/quantumcircuit.py +++ b/qiskit/circuit/quantumcircuit.py @@ -676,6 +676,14 @@ def assign_variables(self, value_dict): new_circuit.variable_table[variable] = value_dict return new_circuit + @p...
Transpiling parameterized circuits for device backends raises ``` >>> qobj = qk.compile(qc, backend=FakeTokyo()) /Users/kevin.krsulichibm.com/q/qiskit-terra/qiskit/tools/compiler.py:50: DeprecationWarning: qiskit.compile() is deprecated and will be removed in Qiskit Terra 0.9. Please use qiskit.transpile() to transfo...
I'm not sure this is going to be fixable, we switched optimize 1q gates in #1738 to resolve things numerically which resulted in a very significant speed up. If we're passing in sympy expressions for parameters which are not able to represented as a float I don't see how we can run optimize 1q on them short of adding b...
2019-04-17T22:14:56Z
[]
[]
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Users/kevin.krsulichibm.com/q/qiskit-terra/qiskit/tools/compiler.py", line 67, in compile initial_layout, seed_mapper, pass_manager) File "/Users/kevin.krsulichibm.com/q/qiskit-terra/qiskit/transpiler/transpiler.py", line 85, i...
1,113
Qiskit/qiskit
Qiskit__qiskit-2169
da338d8ff9ca7e67ec675aac9414b9976341c580
diff --git a/qiskit/visualization/matplotlib.py b/qiskit/visualization/matplotlib.py --- a/qiskit/visualization/matplotlib.py +++ b/qiskit/visualization/matplotlib.py @@ -787,9 +787,15 @@ def _draw_ops(self, verbose=False): def param_parse(v, pimode=False): for i, e in enumerate(v): if pimode...
Visualization support for parameterized circuits Following #2103, gate params can be sympy expressions ``` >>> theta = sympy.Symbol('theta') >>> qc = qk.QuantumCircuit(cr, qr) >>> qc.rx(theta, qr[0]) <qiskit.extensions.standard.rx.RXGate object at 0x116d5c1d0> >>> qc.measure(qr[0], cr[0]) <qiskit.circuit.measure...
Is this on all backends or just text? Ok, I just tested this locally, mpl also fails for the same reason casting trying to cast the sympy expression to a float which it can't do because there is no value. But latex actually works: ![param_tex](https://user-images.githubusercontent.com/2447371/56429144-dd0d6a00-628f-...
2019-04-22T16:42:48Z
[]
[]
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Users/kevin.krsulichibm.com/q/qiskit-terra/qiskit/visualization/text.py", line 437, in __str__ return self.single_string() File "/Users/kevin.krsulichibm.com/q/qiskit-terra/qiskit/visualization/text.py", line 462, in single_str...
1,118
Qiskit/qiskit
Qiskit__qiskit-2350
09ed6a15b068259d5e36d55aa0973af5b8099287
diff --git a/qiskit/converters/qobj_to_circuits.py b/qiskit/converters/qobj_to_circuits.py --- a/qiskit/converters/qobj_to_circuits.py +++ b/qiskit/converters/qobj_to_circuits.py @@ -30,7 +30,7 @@ def qobj_to_circuits(qobj): """ warnings.warn('qiskit.converters.qobj_to_circuit() is deprecated and will ' ...
disassemble_circuits() suggested in qobj_to_circuits.py DeprecationWarning doesn't exist <!-- ⚠️ If you do not respect this template, your issue will be closed --> <!-- ⚠️ Make sure to browse the opened and closed issues --> ### Information - **Qiskit Terra version**: 0.8.0 - **Python version**: 3.7.2 - **Oper...
Sorry there seems to be a mistake in the deprecation message. For now please use ```from qiskit.assembler import disassemble``` @mtreinish I think `disassemble` should be added under the `qiskit.compile` namespace. yeah this is a bug we did not update the disassemble warning when we changed API. This was probably m...
2019-05-08T14:09:44Z
[]
[]
Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: cannot import name 'disassemble_circuits' from 'qiskit.compiler' (/Users/matteo/Work/projects/ibmq/env/lib/python3.7/site-packages/qiskit/compiler/__init__.py)
1,148
Qiskit/qiskit
Qiskit__qiskit-2573
3aa97b11f3104113d0ae4e754da8f7e75d07a917
diff --git a/qiskit/dagcircuit/dagcircuit.py b/qiskit/dagcircuit/dagcircuit.py --- a/qiskit/dagcircuit/dagcircuit.py +++ b/qiskit/dagcircuit/dagcircuit.py @@ -1142,7 +1142,8 @@ def collect_runs(self, namelist): s = list(self._multi_graph.successors(node)) while len(s) == 1 and \ ...
internal error from optimize_1q_gates from conditional cy gate ``` >>> qc = qk.QuantumCircuit(2,2) >>> qc.cy(0,1).c_if(qc.cregs[0], 0) <qiskit.circuit.instructionset.InstructionSet object at 0x12c540160> >>> qk.transpile(qc, backend=FakeTenerife()) Traceback (most recent call last): File "<stdin>", line 1, in <...
It looks like this is potentially caused by an issue in `dagcircuit.collect_runs()` It's supposed to return a list of non-conditional runs of op nodes with the given names. But in the cy().c_if() example above a conditional is being returned which is triggering the if for a condition here: https://github.com/Qiskit/qis...
2019-06-04T18:14:51Z
[]
[]
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Users/kevin.krsulichibm.com/q/qiskit-terra/qiskit/compiler/transpile.py", line 147, in transpile circuits = parallel_map(_transpile_circuit, list(zip(circuits, transpile_configs))) File "/Users/kevin.krsulichibm.com/q/qiskit-te...
1,194
Qiskit/qiskit
Qiskit__qiskit-2661
2151cb92497836577d9610d28d78dade1b566f24
diff --git a/qiskit/version.py b/qiskit/version.py --- a/qiskit/version.py +++ b/qiskit/version.py @@ -108,7 +108,10 @@ def _get_qiskit_versions(): pass cmd = [sys.executable, '-m', 'pip', 'freeze'] - reqs = _minimal_ext_cmd(cmd) + try: + reqs = _minimal_ext_cmd(cmd) + except Exception: ...
Initializing __qiskit_version__ raises OSError ### Information - **Qiskit Terra version**: 0.9.0, master branch - **Python version**: 3.6.6 - **Operating system**: Debian GNU/Linux 9 (stretch) ### What is the current behavior? Since Terra 0.9.0 the way to find out the used Qiskit-packages has changed. In versi...
I'm not sure what's going on with `pip --freeze` here. I tried `HOME=/ pip --freeze` from within my terra venv (on mac) and it seemed to work okay. It's a bug that we `raise OSError` here. We should include at least stderr and the return code. I agree this is a bug, it's my mistake I actually realized this yesterday...
2019-06-20T14:53:18Z
[]
[]
Traceback (most recent call last): File "./docs/example_qiskit_entangle.py", line 20, in <module> from qiskit.validation.base import Obj File "/var/jenkins_home/workspace/SDK_dev/venv/lib/python3.6/site-packages/qiskit/__init__.py", line 47, in <module> from qiskit.providers.basicaer import BasicAer ...
1,206
Qiskit/qiskit
Qiskit__qiskit-2783
d9f36863258dd94d2d84c87f2e8518980a4a9df5
diff --git a/qiskit/dagcircuit/dagcircuit.py b/qiskit/dagcircuit/dagcircuit.py --- a/qiskit/dagcircuit/dagcircuit.py +++ b/qiskit/dagcircuit/dagcircuit.py @@ -256,7 +256,7 @@ def apply_operation_back(self, op, qargs=None, cargs=None, condition=None): cargs = cargs or [] all_cbits = self._bits_in_con...
Measures conditioned on register containing the target bit generate an invalid DAG When attempting to condition a `measure` on the register containing the target bit: ``` >>> qc = qk.QuantumCircuit(1,1) >>> qc.measure(0,0).c_if(qc.cregs[0],0) >>> qc.depth() 1 >>> qk.converters.circuit_to_dag(qc).depth() Tracebac...
TIL that conditional measurements are a thing. This is actually probably not a bug, save for in the random testing. There is no causality defined in this situation, so you get the cyclic graph. I don't see the lack of causality here. `qc.measure(1,0).c_if(qc.cregs[0], 0)` to me decomposes as "Check the value of creg0;...
2019-07-12T20:40:07Z
[]
[]
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Users/kevin.krsulichibm.com/q/qiskit-terra/qiskit/dagcircuit/dagcircuit.py", line 574, in depth raise DAGCircuitError("not a DAG") qiskit.dagcircuit.exceptions.DAGCircuitError: 'not a DAG'
1,229
Qiskit/qiskit
Qiskit__qiskit-2931
5303420daa8be87865593b1b5c8a943ae910b82d
diff --git a/qiskit/transpiler/passes/consolidate_blocks.py b/qiskit/transpiler/passes/consolidate_blocks.py --- a/qiskit/transpiler/passes/consolidate_blocks.py +++ b/qiskit/transpiler/passes/consolidate_blocks.py @@ -19,7 +19,7 @@ The blocks are collected by a previous pass, such as Collect2qBlocks. """ -from qis...
ConsolidateBlocks raises for CX between two registers From https://travis-ci.com/Qiskit/qiskit-terra/jobs/216588160#L6863: ``` >>> qr1 = qk.QuantumRegister(1) >>> qr2 = qk.QuantumRegister(2) >>> qc = qk.QuantumCircuit(qr2, qr1, cr) >>> qc.cx(qr1[0], qr2[1]) >>> qc.measure(qr1[0], cr[0]) >>> qk.transpile(qc, op...
.. and this one if you don't mind @maddy-tod :)
2019-08-07T11:33:54Z
[]
[]
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Users/kevin.krsulichibm.com/q/qiskit-terra/qiskit/compiler/transpile.py", line 187, in transpile circuits = parallel_map(_transpile_circuit, list(zip(circuits, transpile_configs))) File "/Users/kevin.krsulichibm.com/q/qiskit-te...
1,259
Qiskit/qiskit
Qiskit__qiskit-2947
85ec21f6db77a316c661f47a8906e7cadf1b09f9
diff --git a/qiskit/circuit/parameter.py b/qiskit/circuit/parameter.py --- a/qiskit/circuit/parameter.py +++ b/qiskit/circuit/parameter.py @@ -15,6 +15,8 @@ Parameter Class for variable parameters. """ +from uuid import uuid4 + import sympy from .parameterexpression import ParameterExpression @@ -22,6 +24,27 @@...
assemble.py _expand_parameters(circuits, run_config) apparently broken <!-- ⚠️ If you do not respect this template, your issue will be closed --> <!-- ⚠️ Make sure to browse the opened and closed issues --> ### Information - **Qiskit Terra version**: master - **Python version**: 3.6.8 - **Operating system**: L...
This bug is similar to #2429 . Right now, `Parameter`s depend on python identity for equality, but when they are serialized and sent to another process (here by `parallel_map` inside `transpile` inside `execute`), and return, they are instantiated with a new identity and so no longer treated as equal. The comparison...
2019-08-08T20:19:27Z
[]
[]
Traceback (most recent call last): File "adrian_auer_example.py", line 25, in <module> parameter_binds=[{theta: 1}]) File "/home/jax/work/QISKit/DEV/qiskit-terra/qiskit/execute.py", line 218, in execute run_config=run_config File "/home/jax/work/QISKit/DEV/qiskit-terra/qiskit/compiler/assemble.py", ...
1,263
Qiskit/qiskit
Qiskit__qiskit-3051
b0a4d01143133438bd2d123f23b5ac48289ebedf
diff --git a/qiskit/visualization/bloch.py b/qiskit/visualization/bloch.py --- a/qiskit/visualization/bloch.py +++ b/qiskit/visualization/bloch.py @@ -53,6 +53,7 @@ import os import numpy as np +from matplotlib import get_backend import matplotlib.pyplot as plt # pylint: disable=import-error from matplotlib.patc...
circuit.draw() interactive failed when used in python Shell <!-- ⚠️ If you do not respect this template, your issue will be closed --> <!-- ⚠️ Make sure to browse the opened and closed issues --> ### Information - **Qiskit Terra version**: 0.8.2 - **Python version**: 3.7.3 - **Operating system**: Windows 10 ...
Hi @skxsky I agree this is unexpected behaviour. This happens because we close the figure before returning it, to prevent it from rendering twice in Jupyter notebooks. If you run this code from a Jupyter notebook it should work, or you can save the image using `circuit.draw(output = 'mpl', filename="my_circuit.png")`....
2019-08-28T12:02:28Z
[]
[]
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "C:\Users\pc\.conda\envs\qcircuit\lib\site-packages\qiskit\circuit\quantumcircuit.py", line 487, in draw justify=justify) File "C:\Users\pc\.conda\envs\qcircuit\lib\site-packages\qiskit\visualization\circuit_visualization.py", li...
1,278
Qiskit/qiskit
Qiskit__qiskit-3079
54ea1b9ad78a2ccf3595284410c4da72cb941ef0
diff --git a/qiskit/circuit/quantumcircuit.py b/qiskit/circuit/quantumcircuit.py --- a/qiskit/circuit/quantumcircuit.py +++ b/qiskit/circuit/quantumcircuit.py @@ -355,24 +355,8 @@ def append(self, instruction, qargs=None, cargs=None): expanded_cargs = [self.cbit_argument_conversion(carg) for carg in cargs or [...
ParameterTable expects Instructions to be used only once within a circuit See the bug reported in #3008 . The implementation of `ParameterTable` and the associated binding machinery operate under the assumption that a given `Instruction` instance will appear in only one gate in a circuit, but this isn't guaranteed. ...
2019-09-06T21:32:06Z
[]
[]
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Users/kevin.krsulichibm.com/q/qiskit-terra/qiskit/circuit/quantumcircuit.py", line 875, in bind_parameters new_circuit._bind_parameter(parameter, value) File "/Users/kevin.krsulichibm.com/q/qiskit-terra/qiskit/circuit/quantumci...
1,283
Qiskit/qiskit
Qiskit__qiskit-3675
21a3424368afc75afe3f695f72654320cbb16795
diff --git a/qiskit/converters/ast_to_dag.py b/qiskit/converters/ast_to_dag.py --- a/qiskit/converters/ast_to_dag.py +++ b/qiskit/converters/ast_to_dag.py @@ -48,8 +48,11 @@ from qiskit.extensions.standard.rz import RZGate from qiskit.extensions.standard.cu1 import Cu1Gate from qiskit.extensions.standard.ch import C...
Reading QASM strings with Ion-Trap Gates broken <!-- ⚠️ If you do not respect this template, your issue will be closed --> <!-- ⚠️ Make sure to browse the opened and closed issues --> ### Information - **Qiskit Terra version**: 0.11.0 - **Python version**: 3.7.5 - **Operating system**: Windows ### What is t...
Can I have a go at it? I am new to this, so please correct me if I am wrong at any point. I believe we would need to add the rxx gate (and any other gates defined in qiskit/extensions for full support) in qelib1.inc
2020-01-03T14:19:05Z
[]
[]
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "[...]\site-packages\qiskit\circuit\quantumcircuit.py", line 1174, in from_qasm_str return _circuit_from_qasm(qasm) File "[...]\site-packages\qiskit\circuit\quantumcircuit.py", line 1241, in _circuit_from_qasm ast = qasm.par...
1,368
Qiskit/qiskit
Qiskit__qiskit-3869
c59783a5739dd7f2d25ead7549bb95c642d69e9a
diff --git a/qiskit/circuit/quantumcircuit.py b/qiskit/circuit/quantumcircuit.py --- a/qiskit/circuit/quantumcircuit.py +++ b/qiskit/circuit/quantumcircuit.py @@ -124,6 +124,13 @@ class QuantumCircuit: extension_lib = "include \"qelib1.inc\";" def __init__(self, *regs, name=None): + if any([not isins...
QuantumCircuit constructor fails if n_qubits is np.int64 <!-- ⚠️ If you do not respect this template, your issue will be closed --> <!-- ⚠️ Make sure to browse the opened and closed issues to confirm this idea does not exist. --> ### What is the expected enhancement? ``` Python 3.5.6 |Anaconda, Inc.| (default, ...
@1ucian0 have you made progress on this? I'd like to give it a go if not (I'm new to qiskit and open source and this looks like a nice first issue to try out!) Sure! Go ahead! Yay great I'll get cracking! Is there a corresponding test file that needs updating as well? Yes, tests should be added (maybe in the files we...
2020-02-20T23:12:04Z
[]
[]
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Users/kevin.krsulichibm.com/q/qiskit-terra/qiskit/circuit/quantumcircuit.py", line 157, in __init__ self.add_register(*regs) File "/Users/kevin.krsulichibm.com/q/qiskit-terra/qiskit/circuit/quantumcircuit.py", line 541, in add_...
1,398
Qiskit/qiskit
Qiskit__qiskit-4366
77b38a925a48f6976b17611a8b7ca3c77b4c827c
diff --git a/qiskit/circuit/library/standard_gates/__init__.py b/qiskit/circuit/library/standard_gates/__init__.py --- a/qiskit/circuit/library/standard_gates/__init__.py +++ b/qiskit/circuit/library/standard_gates/__init__.py @@ -84,5 +84,17 @@ from .y import YGate, CYGate from .z import ZGate, CZGate -from .boole...
Old classes are not accessible via qiskit.extensions <!-- ⚠️ If you do not respect this template, your issue will be closed --> <!-- ⚠️ Make sure to browse the opened and closed issues --> ### Information - **Qiskit Terra version**: 0.14.0 - **Python version**: All - **Operating system**: Any ### What is th...
2020-04-30T21:54:14Z
[]
[]
Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: cannot import name 'Cu3Gate' from 'qiskit.extensions' (/home/mtreinish/git/qiskit/qiskit/.tox/lint/lib/python3.8/site-packages/qiskit/extensions/__init__.py)
1,465
Qiskit/qiskit
Qiskit__qiskit-447
06482631beceba0a3571e925dcdb1a23b97ecdbf
diff --git a/qiskit/mapper/_compiling.py b/qiskit/mapper/_compiling.py --- a/qiskit/mapper/_compiling.py +++ b/qiskit/mapper/_compiling.py @@ -22,7 +22,7 @@ import math import numpy as np -from scipy.linalg import expm +import scipy.linalg as la from ._mappererror import MapperError @@ -40,7 +40,7 @@ def euler...
two-qubit-kak error when computing phase <!--- Provide a general summary of the issue in the Title above --> When I run the following program, I encountered an error: ``` #setup from qiskit import QuantumProgram import Qconfig qp = QuantumProgram() qp.set_api(Qconfig.APItoken, Qconfig.config['url']) from qi...
Hi @rraymondhp the problem is that eig does not behave as needed for all inputs. Here is one way to fix the problem. If M2 is close to real, round it to a real type before calling eig. If M2 is symmetric, use eigh. If M2 is already diagonal, substitute D and P and skip the call to eig. Actually it is a problem that occ...
2018-05-04T13:41:35Z
[]
[]
Traceback (most recent call last): File "test_u.py", line 15, in <module> permCircuit = two_qubit_kak(perm) File "/Users/rraymondhp/miniconda3/envs/QISKitenv/lib/python3.6/site-packages/qiskit/mapper/_compiling.py", line 177, in two_qubit_kak D, P = np.linalg.eig(M2) File "/Users/rraymondhp/minicond...
1,481
Qiskit/qiskit
Qiskit__qiskit-4584
93a51c815ffa1f9ee3e894ec4e576f5c75128d74
diff --git a/qiskit/circuit/add_control.py b/qiskit/circuit/add_control.py --- a/qiskit/circuit/add_control.py +++ b/qiskit/circuit/add_control.py @@ -102,12 +102,6 @@ def control(operation: Union[Gate, ControlledGate], # pylint: disable=unused-import import qiskit.circuit.library.standard_gates.multi_control...
When `num_ctrl_qubits=0`, creating controlled gates will produce an `AttributeError` <!-- ⚠️ If you do not respect this template, your issue will be closed --> <!-- ⚠️ Make sure to browse the opened and closed issues --> ### Information - **Qiskit Terra version**: 0.14.1 - **Python version**: 3.8 - **Operating...
Another option would be to raise an exception if num_ctrl_qubits=0. Then whenever `control` is called a `ControlledGate` is always returned. Letting num_ctrl_qubits=0 doesn't seem necessary to support since one could just use the original gate. Indeed a `ControlledGate` with 0 control bits does not seem to be necessary...
2020-06-16T09:57:15Z
[]
[]
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/local/lib/python3.8/dist-packages/qiskit/circuit/library/standard_gates/z.py", line 100, in control return super().control(num_ctrl_qubits=num_ctrl_qubits, label=label, ctrl_state=ctrl_state) File "/usr/local/lib/python3.8/...
1,505
Qiskit/qiskit
Qiskit__qiskit-4596
9a5d8577c10c58e28cd9d139c6a0aa0faf8bd868
diff --git a/qiskit/transpiler/passes/basis/unroll_3q_or_more.py b/qiskit/transpiler/passes/basis/unroll_3q_or_more.py --- a/qiskit/transpiler/passes/basis/unroll_3q_or_more.py +++ b/qiskit/transpiler/passes/basis/unroll_3q_or_more.py @@ -36,6 +36,9 @@ def run(self, dag): # TODO: allow choosing other possi...
​Cannot unroll identity matrix of more than 2 qubits when coupling_map is set <!-- ⚠️ If you do not respect this template, your issue will be closed --> <!-- ⚠️ Make sure to browse the opened and closed issues --> ### Information - **Qiskit Terra version**: 0.14.1 - **Python version**: 3.8 - **Operating system...
2020-06-19T19:50:53Z
[]
[]
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/local/lib/python3.8/dist-packages/qiskit/compiler/transpile.py", line 210, in transpile circuits = parallel_map(_transpile_circuit, list(zip(circuits, transpile_args))) File "/usr/local/lib/python3.8/dist-packages/qiskit/tool...
1,508
Qiskit/qiskit
Qiskit__qiskit-4597
81603cc65fc558c2f6b2535d29bd42d62bcc62ea
diff --git a/qiskit/visualization/latex.py b/qiskit/visualization/latex.py --- a/qiskit/visualization/latex.py +++ b/qiskit/visualization/latex.py @@ -292,7 +292,7 @@ def _get_image_depth(self): columns = 2 # add extra column if needed - if self.cregbundle and self.ops[0][0].name == "measure"...
Latex drawer fails with conditional and cregbundle=True <!-- ⚠️ If you do not respect this template, your issue will be closed --> <!-- ⚠️ Make sure to browse the opened and closed issues --> ### Information - **Qiskit Terra version**: Current master - **Python version**: 3.8 - **Operating system**: Ubuntu 18.04...
2020-06-22T06:33:09Z
[]
[]
Traceback (most recent call last): File "test_latex_creg.py", line 6, in <module> c = qc.draw(output='latex_source', cregbundle=True) File "/home/ed/qiskit/qiskit-terra/qiskit/circuit/quantumcircuit.py", line 994, in draw return circuit_drawer(self, scale=scale, File "/home/ed/qiskit/qiskit-terra/qi...
1,509
Qiskit/qiskit
Qiskit__qiskit-4747
f10e312f09342d152865b26c122eb3ee24c89b2a
diff --git a/qiskit/dagcircuit/dagcircuit.py b/qiskit/dagcircuit/dagcircuit.py --- a/qiskit/dagcircuit/dagcircuit.py +++ b/qiskit/dagcircuit/dagcircuit.py @@ -938,10 +938,16 @@ def node_eq(node_self, node_other): return rx.is_isomorphic_node_match(self._multi_graph, other._multi_graph, node_eq) - def to...
​Cannot unroll identity matrix of more than 2 qubits when coupling_map is set <!-- ⚠️ If you do not respect this template, your issue will be closed --> <!-- ⚠️ Make sure to browse the opened and closed issues --> ### Information - **Qiskit Terra version**: 0.14.1 - **Python version**: 3.8 - **Operating system...
2020-07-17T17:23:30Z
[]
[]
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/local/lib/python3.8/dist-packages/qiskit/compiler/transpile.py", line 210, in transpile circuits = parallel_map(_transpile_circuit, list(zip(circuits, transpile_args))) File "/usr/local/lib/python3.8/dist-packages/qiskit/tool...
1,531
Qiskit/qiskit
Qiskit__qiskit-4840
1468ffb55a70c949147bac3cac052bd483b801bd
diff --git a/qiskit/transpiler/passes/optimization/consolidate_blocks.py b/qiskit/transpiler/passes/optimization/consolidate_blocks.py --- a/qiskit/transpiler/passes/optimization/consolidate_blocks.py +++ b/qiskit/transpiler/passes/optimization/consolidate_blocks.py @@ -60,7 +60,10 @@ def __init__(self, se...
Transpiling 1q circuit at optimization level 3 breaks in 1q basis <!-- ⚠️ If you do not respect this template, your issue will be closed --> <!-- ⚠️ Make sure to browse the opened and closed issues --> ### Information - **Qiskit Terra version**: 5bdd12db84b2ef13292d26cd6750fa8fabd61bb3 - **Python version**: 3.7...
i got expected behaviour , try updating or moving to another low version of terra or other On stable it still works, right, but we should fix it on the master version (ideally before the release). Which versions did you try for transpiling? I'm running on 5bdd12db84b2ef13292d26cd6750fa8fabd61bb3 (version of July 30th)....
2020-07-31T20:17:47Z
[]
[]
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Users/jul/Work/Qiskit/qiskit-terra/qiskit/compiler/transpile.py", line 214, in transpile circuits = parallel_map(_transpile_circuit, list(zip(circuits, transpile_args))) File "/Users/jul/Work/Qiskit/qiskit-terra/qiskit/tools/pa...
1,547
Qiskit/qiskit
Qiskit__qiskit-4887
5edca05b5188373726f3cc667e1f05bb067048a3
diff --git a/qiskit/circuit/quantumcircuit.py b/qiskit/circuit/quantumcircuit.py --- a/qiskit/circuit/quantumcircuit.py +++ b/qiskit/circuit/quantumcircuit.py @@ -25,6 +25,7 @@ from qiskit.util import is_main_process from qiskit.circuit.instruction import Instruction from qiskit.circuit.gate import Gate +from qiskit...
Re-using parameterized gate instances breaks upon in-place parameter assigning <!-- ⚠️ If you do not respect this template, your issue will be closed --> <!-- ⚠️ Make sure to browse the opened and closed issues --> ### Information - **Qiskit Terra version**: e03cb1b7fd - **Python version**: 3.7.7 - **Operatin...
2020-08-07T01:40:10Z
[]
[]
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Users/jul/Work/Qiskit/qiskit-terra/qiskit/circuit/quantumcircuit.py", line 836, in to_gate return circuit_to_gate(self, parameter_map, label=label) File "/Users/jul/Work/Qiskit/qiskit-terra/qiskit/converters/circuit_to_gate.py"...
1,557
Qiskit/qiskit
Qiskit__qiskit-4955
6220b8cddebd1cd24c2b1eef1cdf258979649550
diff --git a/qiskit/extensions/unitary.py b/qiskit/extensions/unitary.py --- a/qiskit/extensions/unitary.py +++ b/qiskit/extensions/unitary.py @@ -19,7 +19,7 @@ from qiskit.circuit import Gate, ControlledGate from qiskit.circuit import QuantumCircuit -from qiskit.circuit import QuantumRegister +from qiskit.circuit ...
QuantumCircuit.unitary doesn't accept single integer qargs <!-- ⚠️ If you do not respect this template, your issue will be closed --> <!-- ⚠️ Make sure to browse the opened and closed issues --> ### Information - **Qiskit Terra version**: master @ 251930a - **Python version**: 3.5 - **Operating system**: osx ...
2020-08-20T10:37:25Z
[]
[]
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Users/kevin.krsulichibm.com/q/qiskit-terra/qiskit/extensions/unitary.py", line 211, in unitary return self.append(UnitaryGate(obj, label=label), qubits, []) File "/Users/kevin.krsulichibm.com/q/qiskit-terra/qiskit/circuit/quant...
1,569
Qiskit/qiskit
Qiskit__qiskit-5020
9165f396a124fdc43e5288a7c9f3c2f70018ad66
diff --git a/qiskit/circuit/instruction.py b/qiskit/circuit/instruction.py --- a/qiskit/circuit/instruction.py +++ b/qiskit/circuit/instruction.py @@ -267,7 +267,20 @@ def inverse(self): """ if self.definition is None: raise CircuitError("inverse() not implemented for %s." % self.name) - ...
Inverse of MCX gates generated without qubits for ancillae <!-- ⚠️ If you do not respect this template, your issue will be closed --> <!-- ⚠️ Make sure to browse the opened and closed issues --> ### Information - **Qiskit Terra version**: master @ 7d79ab0 - **Python version**: 3.5 - **Operating system**: osx ...
2020-09-02T21:06:10Z
[]
[]
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Users/kevin.krsulichibm.com/q/qiskit-terra/qiskit/compiler/transpile.py", line 214, in transpile circuits = parallel_map(_transpile_circuit, list(zip(circuits, transpile_args))) File "/Users/kevin.krsulichibm.com/q/qiskit-terra...
1,578
Qiskit/qiskit
Qiskit__qiskit-5051
2a2b504f97e555571ec952d057aedcb8c344b1bb
diff --git a/qiskit/execute.py b/qiskit/execute.py --- a/qiskit/execute.py +++ b/qiskit/execute.py @@ -243,8 +243,7 @@ def execute(experiments, backend, coupling_map=coupling_map, seed_transpiler=seed_transpiler, ...
Cannot use `execute` with a `PassManager` <!-- ⚠️ If you do not respect this template, your issue will be closed --> <!-- ⚠️ Make sure to browse the opened and closed issues --> ### Information - **Qiskit Terra version**: 0.15.1 - **Python version**: 3.8.5 - **Operating system**: Ubuntu 18.04 ### What is th...
Can I help with this? I think it is, indeed, a bug. I will remove `backend` as conflicting. > it is currently unusable anyway. I'm curious. Why?
2020-09-10T01:12:26Z
[]
[]
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/will/miniconda3/envs/dev/lib/python3.8/site-packages/qiskit/execute.py", line 243, in execute _check_conflicting_argument(optimization_level=optimization_level, File "/home/will/miniconda3/envs/dev/lib/python3.8/site-packa...
1,585
Qiskit/qiskit
Qiskit__qiskit-5060
1c89cc59c8ec45311748e3f4c37e843068155d51
diff --git a/qiskit/circuit/library/template_circuits/__init__.py b/qiskit/circuit/library/template_circuits/__init__.py new file mode 100644 --- /dev/null +++ b/qiskit/circuit/library/template_circuits/__init__.py @@ -0,0 +1,11 @@ +# This code is part of Qiskit. +# +# (C) Copyright IBM 2017, 2020. +# +# This code is l...
Aqua build fails: `No module named 'qiskit.circuit.library.template_circuits'` <!-- ⚠️ If you do not respect this template, your issue will be closed --> <!-- ⚠️ Make sure to browse the opened and closed issues --> ### Information - **Qiskit Terra version**: Latest sources after https://github.com/Qiskit/qiskit-...
2020-09-11T14:15:39Z
[]
[]
Traceback (most recent call last): File "/opt/hostedtoolcache/Python/3.8.5/x64/lib/python3.8/unittest/loader.py", line 470, in _find_test_path package = self._get_module_from_name(name) File "/opt/hostedtoolcache/Python/3.8.5/x64/lib/python3.8/unittest/loader.py", line 377, in _get_module_from_name __i...
1,587
Qiskit/qiskit
Qiskit__qiskit-5286
70f476bba8041b5e2ca4df923f3db829f60876e3
diff --git a/qiskit/quantum_info/states/statevector.py b/qiskit/quantum_info/states/statevector.py --- a/qiskit/quantum_info/states/statevector.py +++ b/qiskit/quantum_info/states/statevector.py @@ -677,6 +677,7 @@ def _evolve_instruction(statevec, obj, qargs=None): obj.name, type(obj.definition))) ...
Statevector.from_instruction fails for custom controlled gates <!-- ⚠️ If you do not respect this template, your issue will be closed --> <!-- ⚠️ Make sure to browse the opened and closed issues --> ### Information - **Qiskit Terra version**: latest - **Python version**: - **Operating system**: ### What is ...
2020-10-23T21:36:20Z
[]
[]
Traceback (most recent call last): File "<ipython-input-127-b464b6ab1295>", line 1, in <module> Statevector.from_instruction(qc) File "/opt/miniconda3/envs/qiskit/lib/python3.7/site-packages/qiskit/quantum_info/states/statevector.py", line 529, in from_instruction return Statevector._evolve_instruction...
1,614
Qiskit/qiskit
Qiskit__qiskit-5554
21e2898c711790a6200dc90ee0952c90471dd711
diff --git a/qiskit/quantum_info/synthesis/one_qubit_decompose.py b/qiskit/quantum_info/synthesis/one_qubit_decompose.py --- a/qiskit/quantum_info/synthesis/one_qubit_decompose.py +++ b/qiskit/quantum_info/synthesis/one_qubit_decompose.py @@ -19,8 +19,8 @@ import scipy.linalg as la from qiskit.circuit.quantumcircui...
Transpilation fails with snapshot instruction <!-- ⚠️ If you do not respect this template, your issue will be closed --> <!-- ⚠️ Make sure to browse the opened and closed issues --> ### Information - **Qiskit Terra version**: master - **Python version**: 3.8.5 - **Operating system**: Linux ### What is the c...
2020-12-21T18:51:00Z
[]
[]
Traceback (most recent call last): File "snapshot_invalid.py", line 14, in <module> transpile(circ, backend, basis_gates=['u', 'cx']) File "/home/yaelbh/work/terra/System/qiskit/compiler/transpile.py", line 241, in transpile circuits = parallel_map(_transpile_circuit, list(zip(circuits, transpile_args)...
1,652
Qiskit/qiskit
Qiskit__qiskit-5570
74ed881a9fcad89a5e8f41a0cfdeffb98a8e3051
diff --git a/qiskit/dagcircuit/dagcircuit.py b/qiskit/dagcircuit/dagcircuit.py --- a/qiskit/dagcircuit/dagcircuit.py +++ b/qiskit/dagcircuit/dagcircuit.py @@ -1384,6 +1384,8 @@ def filter_fn(node): return node.type == 'op' and len(node.qargs) == 1 \ and len(node.cargs) == 0 and node.condit...
Transpilation fails with snapshot instruction <!-- ⚠️ If you do not respect this template, your issue will be closed --> <!-- ⚠️ Make sure to browse the opened and closed issues --> ### Information - **Qiskit Terra version**: master - **Python version**: 3.8.5 - **Operating system**: Linux ### What is the c...
Oddly enough, I was just working on this as part of #5554. This is caused by `Optimize1qGatesDecomposition.run()` calling `Operator(qc)`. Operator will fail for 'snapshot', 'delay', and 'reset'. The reason it works with 'u3' in the basis is that if the basis has 'u1', 'u2', or 'u3', the optimizer calls `Optimize1qGates...
2021-01-01T10:05:49Z
[]
[]
Traceback (most recent call last): File "snapshot_invalid.py", line 14, in <module> transpile(circ, backend, basis_gates=['u', 'cx']) File "/home/yaelbh/work/terra/System/qiskit/compiler/transpile.py", line 241, in transpile circuits = parallel_map(_transpile_circuit, list(zip(circuits, transpile_args)...
1,656
Qiskit/qiskit
Qiskit__qiskit-5755
123d829acb824ba906a10d2f06b92891a9f34221
diff --git a/qiskit/pulse/schedule.py b/qiskit/pulse/schedule.py --- a/qiskit/pulse/schedule.py +++ b/qiskit/pulse/schedule.py @@ -24,6 +24,8 @@ from collections import defaultdict from typing import List, Tuple, Iterable, Union, Dict, Callable, Set, Optional, Any +import numpy as np + from qiskit.circuit.paramete...
Pulse Schedule durations fail with numpy integers <!-- ⚠️ If you do not respect this template, your issue will be closed --> <!-- ⚠️ Make sure to browse the opened and closed issues --> ### Information - **Qiskit Terra version**: 0.16.1 - **Python version**: 3.7.6 - **Operating system**: Linux via WSL ### W...
2021-01-31T03:08:41Z
[]
[]
Traceback (most recent call last): File "<stdin>", line 3, in <module> File "/nix/store/z8hw09q3vlpxgl01d6iwpimw7fdlvqsk-python3-3.7.6-env/lib/python3.7/site-packages/qiskit/pulse/builder.py", line 1384, in play append_instruction(instructions.Play(pulse, channel)) File "/nix/store/z8hw09q3vlpxgl01d6iwpi...
1,687
Qiskit/qiskit
Qiskit__qiskit-5807
20a0c6d8bb9e3a858833522f2e291d7cb69ea4ee
diff --git a/qiskit/circuit/quantumcircuit.py b/qiskit/circuit/quantumcircuit.py --- a/qiskit/circuit/quantumcircuit.py +++ b/qiskit/circuit/quantumcircuit.py @@ -83,7 +83,7 @@ class QuantumCircuit: name (str): the name of the quantum circuit. If not set, an automatically generated string will b...
Unable bind parameters in global phase <!-- ⚠️ If you do not respect this template, your issue will be closed --> <!-- ⚠️ Make sure to browse the opened and closed issues --> ### Information - **Qiskit Terra version**: master @ c3b2d7ac - **Python version**: 3.7.9 - **Operating system**: macOS Big Sur ### W...
2021-02-07T10:00:28Z
[]
[]
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Users/jul/Qiskit/qiskit-terra/qiskit/circuit/quantumcircuit.py", line 1912, in bind_parameters return self.assign_parameters(value_dict) File "/Users/jul/Qiskit/qiskit-terra/qiskit/circuit/quantumcircuit.py", line 1886, in assi...
1,695